|
|
| FotonBox |
| Posted: Dec 7 2010, 10:34 PM |
 |
|
Newbie

Group: Members
Posts: 1
Member No.: 29277
Joined: 7-December 10

|
Hello, i need to periodically run vdub.exe from external program for some video compression, but do not bother user with some annoying popups.
Console window could be hid very easy, but not the main VirtualDub.exe process window.
Even when try to hide it with API call to ShowWindow every 10 ms it often draws itself on the taskbar, which is unacceptable.
Moreover, in case of running VirtualDub.exe directly with some arguments instead of vdub.exe and specifying to run with hidden window it also draws itself on taskbar.
Is there any way to hide virtualdub window before it shows in the taskbar or anywhere else?
Thanks in advance! |
 |
| phaeron |
| Posted: Dec 12 2010, 11:54 PM |
 |
|

Virtualdub Developer
  
Group: Administrator
Posts: 7773
Member No.: 61
Joined: 30-July 02

|
There is no currently supported way to do this. The reason I've set it up this way is that there are still cases where dialog boxes can appear that aren't necessarily under my control, and if VirtualDub's window is hidden, there may be no way for these to appear, jamming the program.
You could try changing the window type to popup, however, which might prevent the window from appearing in the taskbar. This is done by using GetWindowLong()/SetWindowLong() to set WS_POPUP and then calling SetWindowPos() with the SWP_FRAMECHANGED flag. |
 |
| ale5000 |
| Posted: Dec 13 2010, 08:13 PM |
 |
|

Advanced Member
  
Group: Members
Posts: 1114
Member No.: 22180
Joined: 30-September 07

|
A good way could be to add a command line option to hide everything but leave an icon in system tray, so clicking the icon can show the program.
-------------------- New VirtualDub forum VirtualDub AIO (All-in-One installer for VirtualDub and plugins) Codec Toolbox RS (A tool to read/change merit of codecs and many other things) Input plugins for VirtualDub / ACM codecs / VFW codecs |
 |