Jeffrey Winn's Blog

Assorted thoughts and information of nominal value

View on GitHub

I use AutoHotkey as my keyboard shortcut app under Windows 10. I’ve been looking for a way to minimize the normally full-screen session with a key combination.

Then I ran across this gem, which works great!:

#IfWinActive ahk_class TscShellContainerClass
  ^Capslock::           ; Ctrl+Caps Lock (couldn't make Ctrl+Shift+Caps Lock work for some reason
    ; Need a short sleep here for focus to restore properly.
    Sleep 50
    WinMinimize A    ; need A to specify Active window
    ;MsgBox, Received Remote Desktop minimize hotkey    ; uncomment for debugging
  return
#IfWinActive

…Get back