in reply to Bring Win32 command window to foreground
One way to do this is to use Win32::API::Prototype, as follows:
use Win32::API::Prototype; ApiLink( 'kernel32.dll', 'HWND GetConsoleWindow()' ) || die; ApiLink( 'user32.dll', 'BOOL ShowWindow( HWND hWnd, int iCommand )' ) || die; my $hWnd = GetConsoleWindow(); ShowWindow( $hWnd, 0x01 );
There are probably simpler ways to do this though.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Bring Win32 command window to foreground
by pg (Canon) on Oct 11, 2004 at 21:39 UTC | |
by richz (Beadle) on Oct 13, 2004 at 04:51 UTC |