in reply to Re^2: Hiding programs launched within wperl'd script
in thread Hiding programs launched within wperl'd script
So I've now got a hidden console window that any console apps I call will run in. The console may flash once on app startup, but after that you're OK.my $AllocConsole = new Win32::API('kernel32', 'AllocConsole', [] , 'N' +); my $GetConsoleWindow = new Win32::API('kernel32', 'GetConsoleWindow', +[] , 'N'); my $ShowWindow = new Win32::API('user32', 'ShowWindow', ['N','I'] , 'N +'); my $apival = $AllocConsole->Call(); if($apival) { my $console = $GetConsoleWindow->Call(); my $hidewindow = 0; my $rval = $ShowWindow->Call($console, $hidewindow); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Hiding programs launched within wperl'd script
by mdog (Pilgrim) on Jan 18, 2006 at 17:56 UTC | |
by mdog (Pilgrim) on Jan 18, 2006 at 17:59 UTC | |
|
Re^4: Hiding programs launched within wperl'd script
by mdog (Pilgrim) on Jan 18, 2006 at 23:18 UTC |