Skip to content

netcharm/Caps2CtrlSpace

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Caps2CtrlSpace

CapsLock 切换输入法中英文

Modified by netcharm

  1. 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.
  2. Change application's icon.
  3. Add Always on Top option, note: this option is not saved, so next startup, is re-enabled.
  4. Support sync capslock incicator light state to all keyboards with indicator lights
  5. Add contextmenu to notify tray icon for show window, exit app.
  6. 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.
  7. Add contextmenu to Ime Mode & Indicator Image Control, for save the Keyboard Layout Mode & Layout Indicator Image.
  8. Supported automatic switch to english input mode when KeePass hot key pressed.
  9. Using snapshot the ImeModeButton window on system notification area to check & compare Ime Mode in English/locale,

Notes:

  1. This method maybe only worked on Windows 10.
  2. 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 like 2052, 1. Mode:
    1. 0 = Layout (maybe 36x34)
    2. 1 = English
    3. 2 = Ime Locale
    4. 3 = Disabled (maybe unnecessary)
    5. 4 = Close (maybe unnecessary)

Notes:

  1. not supported the IME "Floating Language Toolbar mode", only supported embeded in System Notification Tray Area
  2. Require Run As Administrator for change keyboard indicator light.

Ref Web Pages:

  1. 让USB键盘的LED灯听你的!(不干扰使用)
  2. Keyboard LED control (capslock/numlock/scrolllock lights)
  3. P/Invoke for ntdll functions & data structs.

原理

监听按键,如果是Capslock,则向系统发送Ctrl+Space切换输入法状态

开发环境

Modified by netcharm

  1. VS2015 Express Desktop
  2. .net framework 4.6.2

Binary下载

Modified by netcharm

Mine Binary

  1. Bitbucket 7z package (Preferred)
  2. Bitbucket exe only
  3. Github exe only

Original Binary

  1. Github

使用

启动后,会自动隐藏窗口显示在系统托盘内一个桔黄色的小点的图标。 这时候可以按capslock来切换中英文了。

Modified by netcharm

Sys-Tray icon changed to a composited character icon

自动启动

双击系统托盘图标,在打开的窗口中选中自动启动的选项即可。

About

CapsLock 切换输入法中英文

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%