Skip to content

Instantly share code, notes, and snippets.

@matthayter
Last active October 21, 2025 06:09
Show Gist options
  • Select an option

  • Save matthayter/75ae66b77dbdf26d8a3d4975e4357907 to your computer and use it in GitHub Desktop.

Select an option

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