Created
August 24, 2021 10:07
-
-
Save Hoekstraa/f594ca0d99d645a9fb6419e9b8509a6e to your computer and use it in GitHub Desktop.
Holding Caps and Return acts like Ctrl
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
*CapsLock:: | |
Send {Blind}{Ctrl Down} | |
cDown := A_TickCount | |
Return | |
*CapsLock up:: | |
If ((A_TickCount-cDown)<400) ; Modify press time as needed (milliseconds) | |
Send {Blind}{Ctrl Up}{CapsLock} | |
Else | |
Send {Blind}{Ctrl Up} | |
Return | |
*Return:: | |
Send {Blind}{Ctrl Down} | |
cDown := A_TickCount | |
Return | |
*Return up:: | |
If ((A_TickCount-cDown)<400) ; Modify press time as needed (milliseconds) | |
Send {Blind}{Ctrl Up}{Return} | |
Else | |
Send {Blind}{Ctrl Up} | |
Return |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment