Last active
October 13, 2024 21:33
-
-
Save matthayter/75ae66b77dbdf26d8a3d4975e4357907 to your computer and use it in GitHub Desktop.
Autohotkey V2 script for making Caps Lock both Ctrl & Esc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; 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