Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re: STDOUT and a PAR --gui executable

by bbfu (Curate)
on Apr 12, 2004 at 14:54 UTC ( #344401=note: print w/ replies, xml ) Need Help??

in reply to STDOUT and a PAR --gui executable

Easiest way is to leave off the --gui option and manually hide the console window yourself when desired, using Win32::GUI (or similar). Only down side is that the console window will momentarily flash on when the verbose option is not selected.

## output to STDOUT if $verbose mode seleted but no output log if ($verbose && !$createlog && !$logfile) { open (LOGFILE, ">&1") or dying($!); } else { use Win32::GUI; my ($DOS) = Win32::GUI::GetPerlWindow(); Win32::GUI::Hide($DOS); }

Black flowers blossom
Fearless on my breath

Comment on Re: STDOUT and a PAR --gui executable
Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://344401]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (9)
As of 2015-11-30 10:46 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (769 votes), past polls