Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: How to hide window with Win32:API?

by simonflk (Pilgrim)
on Oct 28, 2002 at 18:12 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (6)
As of 2024-04-26 09:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found