Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to write a hotkey to minimize the current window.

My current attempt is below and it does nothing. I can't see how to make commands like WinMinimize act on the currently acitve window.

<^>!z::
WinMinimize,
return 
share|improve this question
up vote 4 down vote accepted

According to the AutoHotkey help file, you can use the letter A to indicate the active window:

WinMinimize, A

share|improve this answer
1  
Ah so it does. Missed that..... – justintime Mar 23 '10 at 16:39
    
This doesn't always work as intended. E.g. it sometimes sends the WM_MINIMIZE to modal dialog only. There should be a way to get the "main window" of the active window, and send minimize to there. – Ciantic Jan 27 '14 at 18:36

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .