Skip to content

Instantly share code, notes, and snippets.

@matthayter
Last active October 13, 2024 21:33
Show Gist options
  • Save matthayter/75ae66b77dbdf26d8a3d4975e4357907 to your computer and use it in GitHub Desktop.
Save matthayter/75ae66b77dbdf26d8a3d4975e4357907 to your computer and use it in GitHub Desktop.
Autohotkey V2 script for making Caps Lock both Ctrl & Esc
; From @rhh4x0r on https://gist.github.com/volks73/1e889e01ad0a736159a5d56268a300a8
*CapsLock::
{
Send "{LControl down}"
}
*CapsLock up::
{
Send "{LControl Up}"
if (A_PriorKey=="CapsLock"){
if (A_TimeSincePriorHotkey < 1000)
Suspend "1"
Send "{Esc}"
Suspend "0"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment