So I'm programming away in a Command Prompt window and I'm done. I would like to minimize it and move on. My fingers are already on the keyboard, I would like to just enter min
or whatever and have the window go away instead of picking up the mouse and clicking on the minimize button. Sort of like entering exit
, except I don't want the window to die. Is there a way to program this rather than use keyboard commands? Win7, regular command.exe.
Just figured it out, for those who might care.
use Modern::Perl;
use Win32::GUI();
my $perlwindow = Win32::GUI::GetPerlWindow();
Win32::GUI::Minimize($perlwindow);