ActiveState Community

Perltray qx causes the program to appear in a console window

Posted by vedicveko on 2009-06-18 11:45

I've got a perltray script running under XP SP3. Whenever I try to qx a command line program a console window appears and then goes away once qx is done. If I try this same action in a non-perltray script the console window does not appear.

If I run perltray with the --no-gui option the console window does not appear.

Is there a way I can suppress the console window in perltray without using --no-gui?

vedicveko | Thu, 2009-06-18 12:02

Added this:

BEGIN {
Win32::SetChildShowWindow(0)
if defined &Win32::SetChildShowWindow
};

Found here:

http://www.perlmonks.org/bare/?node_id=507627