Requires AutoHotkey v2.0
Detect active window, shift IME according to config file
config file: ./ini/ahkIMEAutoShiftCfg.ini
format:
[en]
exe name1
exe name2
...
[zh]
exe name3
exe name4
...
notice: comment line is not supported yet
Map some keys' output while using Pinyin typing for old version IME.
; => 2
' => 3
/ => 4
Map some keys' output while using Pinyin typing for Win11 newest IME.
; => 2
' => 3
/ => 4
WinExsit()
method doesn't work any more whitch can't catch candidate pop-up in resent win11 updata.
use ImageSearch()
to Search for near the input cursor (silly but work) to detect if using Pinyin
/pic/Win11PinyinIME_logo.png
replaced by your own screen catch
Thanks for mudssky's code
config file:
./ini/forceMapExeList.ini
force mapping key in case
ImageSearch()
doesn't work well in some apps
generate steps:
- copy config file to release folder
- add
ahk2exe
to PATH runwait
use cmdline to callAhk2Exe.exe
generate exe