Skip to content

Instantly share code, notes, and snippets.

@Hoekstraa
Created August 24, 2021 10:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Hoekstraa/f594ca0d99d645a9fb6419e9b8509a6e to your computer and use it in GitHub Desktop.
Save Hoekstraa/f594ca0d99d645a9fb6419e9b8509a6e to your computer and use it in GitHub Desktop.
Holding Caps and Return acts like Ctrl
*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