Skip to content

Instantly share code, notes, and snippets.

@zifnab06
Last active April 1, 2024 19:04
Show Gist options
  • Save zifnab06/d0173e21cec18ceddfd61707f0f78ada to your computer and use it in GitHub Desktop.
Save zifnab06/d0173e21cec18ceddfd61707f0f78ada to your computer and use it in GitHub Desktop.
*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
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