Skip to content

Instantly share code, notes, and snippets.

@sleepiecappy
Created July 30, 2019 15:00
Show Gist options
  • Save sleepiecappy/6c33f102a7ef948367735ba45cc520a3 to your computer and use it in GitHub Desktop.
Save sleepiecappy/6c33f102a7ef948367735ba45cc520a3 to your computer and use it in GitHub Desktop.
map capslock to ctrl and esc using autohotkey
*CapsLock::
Send {Blind}{Ctrl Down}
cDown := A_TickCount
Return
*CapsLock up::
; Modify the threshold time (in milliseconds) as necessary
If ((A_TickCount-cDown) < 210)
Send {Blind}{Ctrl Up}{Esc}
Else
Send {Blind}{Ctrl Up}
Return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment