Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: How to hide window with Win32:API?

by simonflk (Pilgrim)
on Oct 28, 2002 at 18:12 UTC ( #208571=note: print w/replies, xml ) Need Help??


in reply to How to hide window with Win32:API?

This works on my system as long as I'm not trying to hide a window I'm typing in. Which is pretty useful - I can see STDERR / debugging info if I run the command from a shell, but the window is hidden if launched from explorer / start > run / etc

sub hide_console { # Hide the dos window require Win32::API; my $FreeConsole = new Win32::API('kernel32', 'FreeConsole', [], 'I +'); $FreeConsole->Call(); }

-- simonflk

update: according to MSDN, this should work on Windows 95 and above.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2023-05-31 09:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?