Last active
April 1, 2024 19:04
-
-
Save zifnab06/d0173e21cec18ceddfd61707f0f78ada to your computer and use it in GitHub Desktop.
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)<100) ; Modify press time as needed (milliseconds) | |
Send {Blind}{Ctrl Up}{Esc} | |
Else | |
Send {Blind}{Ctrl Up} | |
Return |
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
cDown := 0 | |
*CapsLock:: | |
{ | |
Send("{Blind}{Ctrl Down}") | |
cDown := A_TickCount | |
Return | |
} | |
*CapsLock up:: | |
{ | |
If ((A_TickCount-cDown)<100) ; Modify press time as needed (milliseconds) | |
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