Skip to content

Instantly share code, notes, and snippets.

@Alex4386
Last active October 14, 2020 09:45
Show Gist options
  • Save Alex4386/0316c4ecf0a99a63b5bd2b260d5557c0 to your computer and use it in GitHub Desktop.
Save Alex4386/0316c4ecf0a99a63b5bd2b260d5557c0 to your computer and use it in GitHub Desktop.
AutoHotKey Script for Switching English and Korean IME just like Mac!
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