Created
July 3, 2015 01:46
-
-
Save junho85/48bbd0f7166d189d7b15 to your computer and use it in GitHub Desktop.
my autohotkey
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 to ESC | |
classname = "" | |
keystate = "" | |
*CapsLock:: | |
WinGetClass, classname, A | |
if (classname = "PuTTY" or classname = "Vim" or classname="mintty" or "TMobaXtermForm") { | |
SetCapsLockState, Off | |
send,{ESC} | |
} | |
else { | |
GetKeyState, keystate, CapsLock, T | |
} | |
if (keystate = "D") { | |
SetCapsLockState, Off | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment