View Full Version : Stopping VDubMod status box stealing focus during GKnot jobs?
b00zed
30th September 2003, 02:30
I've been using GKnot since 0.21, and noticed that VDubMod's status box pops up automatically in more recent versions. As I frequently run jobs when I'm using the machine for other things, if a new encode run starts in VDubMod, the status box will steal focus from whatever I'm doing, and if I'm writing something, as soon as I hit the space bar the job is aborted since the abort button in the status box is selected by default.
How do I stop the status box from being automatically opened by GKnot? (it doesn't open when I use VDubMod on its own...) or on the other hand, how do I tell GKnot to open VDubMod and its status box minimised?
Also GKnot doesn't want to *take* focus when I try to maximise it from the system tray... as it seems to minimise to there now, dunno if I like that :) Anyway is there any way I can fix this myself as well?
Relevant information:
GKnot 0.28.5.2
VDubMod 1.5.1.1a
len0x
30th September 2003, 13:04
The two modes of using VDub(Mod) are:
- job mode
- script mode
Previosly (before 0.28) GK was using job mode, which indeed I think doesn't steal the focus, but doesn't show you info about current encodign it either... So starting from 0.28 I changed that to script mode. But now VDumMod does the stealing on its own - and there nothing I can do about it(I think, but I'll check that again)...
Regarding tray icon - the thing is that when you double click on the icon, windows automatically move focus over there (to tray bar). New version og GK which is coming soon will have menu on the tray icon which should do restore GK a bit smoother. (but I still not sure if that is your problem. How do you determine that GK doesn't recieve the focus?)
P.S. which OS are you using?
b00zed
30th September 2003, 13:54
Originally posted by len0x
The two modes of using VDub(Mod) are:
- job mode
- script mode
Previosly (before 0.28) GK was using job mode, which indeed I think doesn't steal the focus, but doesn't show you info about current encodign it either... So starting from 0.28 I changed that to script mode. But now VDumMod does the stealing on its own - and there nothing I can do about it(I think, but I'll check that again)...
Fair enough, but it's easy enough to open the status box on your own if you want it, unless I'm not quite understanding your explanation...
Regarding tray icon - the thing is that when you double click on the icon, windows automatically move focus over there (to tray bar). New version og GK which is coming soon will have menu on the tray icon which should do restore GK a bit smoother. (but I still not sure if that is your problem. How do you determine that GK doesn't recieve the focus?)
The point is that it isn't taking focus when I call it from the tray icon. It appears as a button on the task bar, but if I click on that it ends up in the tray again, so it looks like it's trying to take focus and failing... probably contrary to what I already said.
P.S. which OS are you using?
2k Pro, SP4
Thanks for your reply/thoughts. Is there any way I can do anything to change any of these settings (through any means... command line args, config files etc...) or is it hardcoded into GKnot itself?
Again, thanks.
len0x
30th September 2003, 14:23
Fair enough, but it's easy enough to open the status box on your own if you want it, unless I'm not quite understanding your explanation...
Like how? I don't see any settings in vdubmod which would tell me to open/no open status window... I can uncheck Show Status Window manually in Options of VDubMod, but everytime I restart it's there again...
The point is that it isn't taking focus when I call it from the tray icon. It appears as a button on the task bar, but if I click on that it ends up in the tray again, so it looks like it's trying to take focus and failing... probably contrary to what I already said.
2k Pro, SP4
Well, it might be win2k problem then. I have only tested it on XP (which took really a while) and don't have any W2K PCs so I can't do anything about it atm, neither can you unfortunately...
b00zed
1st October 2003, 05:05
I don't remember it ever popping up in previous versions of GKnot when vdubmod was first involved, but now it opens automatically every time. This could be a change in vdubmod, or it could be selective memory on my part. Sorry for wasting your time.
len0x
1st October 2003, 11:25
Originally posted by b00zed
I don't remember it ever popping up in previous versions of GKnot when vdubmod was first involved, but now it opens automatically every time.
It probably was the time when I hadn't switched to VCF mode for starting vdubmod...
P.S. I'll try to talk to vdubmod developers about it...
SiXXGuNNZ
1st October 2003, 11:53
Originally posted by len0x
It probably was the time when I hadn't switched to VCF mode for starting vdubmod...
P.S. I'll try to talk to vdubmod developers about it...
right on lenox, I have been the victim of this crazy abort button while typing on many occasions :D
Tuning
1st October 2003, 16:25
I think it would be easy for the developers of VDM to add few lines in source code for a confirmation dialoge box showing
"Do u really want to abort this job"[with cancel and ok]
whenevr the abort button is clicked.
:D - Tuning
Beastie Boy
2nd October 2003, 01:04
If I remember correctly, Nandub has an option headed "I am an idiot. Do not abort if i click the Abort button", or words to that effect.
Perhaps something like this could save losing many hours of work.
Cheers, Beastie.
Catatonic
2nd October 2003, 07:11
as a temporary work around, you can download and install the tweakui powertoy for windows xp, available from here (http://www.microsoft.com/windowsxp/pro/downloads/powertoys.asp) . expand the general -> focus topic on the left, then check the "prevent applications from stealing focus" check box. i know its kludgy, but it will get us by temporarily until this annoying problem is fixed.
b00zed
2nd October 2003, 08:52
I've already got TweakUI 1.33 running with that option set, which doesn't help me understand what's going on at all :)
b00zed
2nd October 2003, 15:22
Now that I think about it, TweakUI's probably what's causing GKnot's focus issues when it's maximised from the systray...
The plot thickens :D
Catatonic
3rd October 2003, 06:04
the version i linked to is the new 2.10 version, which does work...at least for me, ymmv.
b00zed
3rd October 2003, 07:55
"Version 2.10 requires Windows XP Service Pack 1 or Windows Server 2003."
Even though most bits of WinXP work fine under Win2k, I'm not going to take the risk.
Suiryc
3rd October 2003, 20:26
This issue is also present in VirtualDub. Avery knew about it and it seems he fixed it in his 1.5.5 code.
I just copied the changes concerning this issue in our code and now the "Dubbing status" window doesn't steal the focus anymore (it only gain focus when shown and when VirtualDub(Mod) was the focused app).
Still this window would popup when you launch the exe with the /s commandline option (that is for running a script file). So I also simply changed the code so that, by default, the window remains hidden, which makes that only the main window of VirtualDubMod appear and has focus (i.e. there is no way to accidentaly abort the dubbing).
For those who want to test (AT YOUR OWN RISKS) you can dl this exe (http://cyrius.bunkus.org/VDubMod_Release.zip) I just compiled.
len0x
4th October 2003, 17:15
I just tried new VDubMod and it the best behaviour ever for GK purposes :) So now when it started from GK it's minimized (with % shown on the taskbar) and no status window. Perfect. Thanks!
P.S. Will include this version into already delayed 0.28.6 rippack.
b00zed
5th October 2003, 03:23
ooh
Thankyou very much for that Suiryc :)
(And thankyou for talking to the vdubmod devs about it len0x.)
happy b00zed
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.