Created
November 1, 2016 02:22
-
-
Save hthuong09/34a5e36940a4aeb54abf86623379cac9 to your computer and use it in GitHub Desktop.
Remap caps lock to esc when click and ctrl when combine with other key
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
; Author: fwompner gmail com | |
#InstallKeybdHook | |
SetCapsLockState, alwaysoff | |
Capslock:: | |
Send {LControl Down} | |
KeyWait, CapsLock | |
Send {LControl Up} | |
if ( A_PriorKey = "CapsLock" ) | |
{ | |
Send {Esc} | |
} | |
return |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment