I wrote a script with AutoHotkey to minimize a current using windows task. Namely a sequence of key of Alt, Space, n activated by the press of the right Win key.
RWin::Send !{Space}n
It work perfectly with every software including Firefox but failed in Google Chrome. It just open the File menu and does nothing.
I also tried the following but it made things worse, all the software don't response correctly.
RWin::Send !{Space}
Sleep, 100
Send n
return
Answer
You could use the WinMinimize, A
command to minimise the active window:
RWin::WinMinimize, A
It's probably better than a sequence of keypresses that activate a context menu option. It apparently sends the same minimise message as the option on that context menu, or the minimise button (top right corner): SC_MINIMIZE
.
Tested to work on Chrome 19.0.1084.46 m
, Windows 7 x64, AHK 1.0.48.05
.
No comments:
Post a Comment