Last active
October 14, 2020 09:45
-
-
Save Alex4386/0316c4ecf0a99a63b5bd2b260d5557c0 to your computer and use it in GitHub Desktop.
AutoHotKey Script for Switching English and Korean IME just like Mac!
This file contains hidden or 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:: | |
If capslockHeldDown | |
return | |
capslockHeldDown := true | |
capslockTriggeredAction := false | |
SetTimer, WaitForCapsLockTrigger, 300 | |
return | |
CapsLock Up:: | |
SetTimer, WaitForCapsLockTrigger, Off | |
If !capslockTriggeredAction | |
Send, {vk15sc1F2} | |
capslockTriggeredAction := true | |
capslockHeldDown := false | |
return | |
WaitForCapsLockTrigger: | |
SetTimer, WaitForCapsLockTrigger, Off | |
SetCapsLockState % !GetKeyState("CapsLock", "T") | |
capslockTriggeredAction := true | |
return |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment