Skip to content

Instantly share code, notes, and snippets.

@iforwms
Created May 10, 2015 02:34
Show Gist options
  • Save iforwms/78c28683a8e97ba77838 to your computer and use it in GitHub Desktop.
Save iforwms/78c28683a8e97ba77838 to your computer and use it in GitHub Desktop.
Remap the CapsLock key to the Escape
Capslock::Esc ; Remap Capslock to Esc and shift + CapsLock for normal CapsLock
+Capslock::
if GetKeyState("CapsLock", "T") = 1
{
SetCapsLockState, off
}
else if GetKeyState("CapsLock", "F") = 0
{
SetCapsLockState, on
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment