capsLock key to toggle between input methods [in windows] [with autohotkey]

来源:互联网 发布:无锡行知科技专修学院 编辑:程序博客网 时间:2024/05/16 14:06

key words: autohotkey, input method, capsLock key.


In windows, one may be using ctrl + space keys or win + space keys to toggle between English input method and Chinese input method. It’s, somehow, a labored work finding the win key with my little finger or moving away my left hand and pressing the win key with my index finger.
Here is an easier way to achieve the goal, toggling between your input methods. Using capsLock key instead, for it’s a rarely used key. To configure this on your computer, you just need to install autohotkey on you computer and deploy a short transcript. The transcript could be like this:

; CapsLock key to switch input methodCapsLock::    Send, #{Space}    return; shift key + capslock key to toggle capslock$+Capslock::    SetCapsLockState % getkeystate("Capslock", "t") ? "off" : "on"    return; you may prefer to use pause key as substitution for capsLock key.Pause::    SetCapsLockState % getkeystate("Capslock", "t") ? "off" : "on"    return

To deploy this on your computer, copy this code to a text file and rename the file as transcript.ahk. If you have installed autohotkey, the software, double click the ahk file. Now, you’re ready to go.

key(s) feature capsLock toggle between input methods. shift + capsLock toggle between capital on/off. pause toggle between capital on/off.
阅读全文
0 0
原创粉丝点击