ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Finished Programs

DONE: use hotkey to minimize the active window

(1/1)

brotherS:
Cross-post from https://www.donationcoder.com/forum/index.php?topic=1638 :

I did try Autohotkey some time ago, but the only thing I needed at the moment was minimizing currently active window on hotkey. I didn't find how to do it with Autohotkey in an hour, so now using Hotkeycontrol XP, which in fact has this function right out-of-the-box. Although, I open for suggestions on how to do this with Autohotkey.
-wasker (December 01, 2005, 04:52 AM)
--- End quote ---

I'm sure skrommel is able to come up with the code for this with the blink of an eye :)

I'd also like to add the code to my main script, there are times when this might come in handy!

skrommel:
 :) Ctrl-M minimizes the active window.


--- ---^m::WinMinimize,A
Skrommel

wasker:
Mmmm. Lovely. Thanks, guys! :)

The only question. I have a program that minimizes itself to tray. Neither Hotkeycontrol XP nor Autohotkey with this fantastic script can minimize it properly -- it always minimizes to taskbar. Although when I click Minimize button in window it does everything properly.

Any ideas on how to overcome this issue with Autohotkey? Any pointers too look for appreciated.

Thanks again!

skrommel:
 :) You could use something like


--- ---^m::
IfWinActive,titleoftroublesomeprogram
  MouseClick,xposofminimizebutton,yposofminimizebutton
Else
  WinMinimize,A
Skrommel

brotherS:
I'm sure skrommel is able to come up with the code for this with the blink of an eye :)
-brotherS (December 01, 2005, 08:21 AM)
--- End quote ---

:) Ctrl-M minimizes the active window.


--- ---^m::WinMinimize,A-skrommel (December 01, 2005, 09:45 AM)
--- End quote ---
Ha! I knew it!! :D Thanks!

Navigation

[0] Message Index

Go to full version