Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

1 Answer

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 at 18:36
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.