Skip to content

Instantly share code, notes, and snippets.

@NickCrew
Created November 25, 2019 14:36
Show Gist options
  • Save NickCrew/1d993e3facd09bffb5e78ac9cbe2f0d8 to your computer and use it in GitHub Desktop.
Save NickCrew/1d993e3facd09bffb5e78ac9cbe2f0d8 to your computer and use it in GitHub Desktop.
AutoHotKey: Caps Lock as Ctrl+Escape
SetCapsLockState, AlwaysOff
*Capslock::Send,{control down}
*Capslock up::
if (A_PriorHotkey = "*Capslock")
{
send,{Control Up}{Escape}
Return
}
else
{
send,{Control up}
Return
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment