The following AutoHotkey script will intercept
the Left-Win key, minimize all windows and activate the desktop, then set the
Left-Win key to down. It will wait for the Left-Win key to be released to
set it to the up state so it will work with future pressed keys in combination
until the Win key is released:
LWin:: ; intercept the Left-Win key
WinMinimizeAll ; minimize all windows
WinActivate, Program Manager ; activate the desktop
Send {LWin down} ; send Left-Win down
KeyWait, LWin ; wait for Left-Win key up
Send {LWin up} ; set Left-Win key up
You may do the same with the right-Win key (RWin).
After installing AutoHotKey, put the above text in a .ahk
file and double-click
it to test. You may stop the script by right-click on the green H icon in the
traybar and choosing Exit. To have it run on login, place it in the Startup group at:
C:\Users\USER-NAME\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
.