CapsLock 切换输入法中英文
Modified by netcharm
- Add CapsLock Indicator Light option, but can not auto detect IME State with current input focus, so need you start with eng-input state, then the light maybe turn-on when press capslock to chinese input.
- Change application's icon.
- Add Always on Top option, note: this option is not saved, so next startup, is re-enabled.
- Support sync capslock incicator light state to all keyboards with indicator lights
- Add contextmenu to notify tray icon for show window, exit app.
- Add Timer to auto switch CapsLock Indicator light with keyboard layout switch, but has buggy, when you change input state after switch to other keyboard layout and switch back, it maybe display negtived indicator light.
- Add contextmenu to Ime Mode & Indicator Image Control, for save the Keyboard Layout Mode & Layout Indicator Image.
- Supported automatic switch to english input mode when
KeePass
hot key pressed. - Using snapshot the ImeModeButton window on system notification area to check & compare Ime Mode in English/locale,
Notes:
- This method maybe only worked on Windows 10.
- You may take this area image(png format) by yourself in your
system, and with right size, maybe
22x34
, replace same file in zip package, file name format:{KeyborardLayoutCode}_{Mode}.png
, 1. KeyborardLayoutCode displayed in application bottom like2052
, 1. Mode:0
= Layout (maybe 36x34)1
= English2
= Ime Locale3
= Disabled (maybe unnecessary)4
= Close (maybe unnecessary)
Notes:
- not supported the IME "Floating Language Toolbar mode", only supported embeded in System Notification Tray Area
- Require
Run As Administrator
for change keyboard indicator light.
Ref Web Pages:
- 让USB键盘的LED灯听你的!(不干扰使用)
- Keyboard LED control (capslock/numlock/scrolllock lights)
- P/Invoke for ntdll functions & data structs.
监听按键,如果是Capslock,则向系统发送Ctrl+Space切换输入法状态
Modified by netcharm
- VS2015 Express Desktop
- .net framework 4.6.2
Modified by netcharm
- Bitbucket 7z package (Preferred)
Bitbucket exe onlyGithub exe only
启动后,会自动隐藏窗口显示在系统托盘内一个桔黄色的小点的图标。 这时候可以按capslock来切换中英文了。
Modified by netcharm
Sys-Tray icon changed to a composited character icon
自动启动
双击系统托盘图标,在打开的窗口中选中自动启动的选项即可。