Skip to content

Instantly share code, notes, and snippets.

@xeechou
Created September 22, 2023 16:55
Show Gist options
  • Save xeechou/dd169830d0f7f93d54555da23162645c to your computer and use it in GitHub Desktop.
Save xeechou/dd169830d0f7f93d54555da23162645c to your computer and use it in GitHub Desktop.
How windows hot key setup
LCtrl::Alt
LAlt::Ctrl
#SuspendExempt
f1::Suspend ; Ctrl+Alt+S
#SuspendExempt False
#SuspendExempt
+CapsLock::
{
If (WinActive("ahk_class TscShellContainerClass"))
{
Sleep 50
; winid := "ahk_id " hwnd
WinMinimize
Send "+{Click}" ; the click give me back keyboard events.
}
SetCapsLockState False
Reload
}
#SuspendExempt False
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment