switchime(0) switchime() return ~RShift:: switchime(0) return switchime(ime:="A") { if(ime=1) { DllCall("SendMessage",UInt,WinActive("A"),UInt,80,UInt,1,UInt,DllCall("LoadKeyboardLayout",Str,"00000804",UInt,1)) } elseif(ime=0) { DllCall("SendMessage",UInt,WinActive("A")...
/ahk_scripts/tools/imeswitch.ahk http://github.com/jixiuf/my_autohotkey_scripts AutoHotKey | 181 lines | 129 code | 29 blank | 23 comment | 3 complexity | a2b97c00fb3627e3e51d066a8f62c69d MD5 | raw file ✨ Summary This AutoHotkey script creates a GUI for switching between ...
SetTimer IMESwitch, -200}}; 根据激活窗口切换输入法IMESwitch() {static toggle := 1Critical("On")if(WinActive("ahk_group cnen") && toggle) {setIME(0) ; 切换中文输入法英文状态toggle := 0} elseif(!WinActive("ahk_group cnen") && !toggle) {setIME(1) ; 切换中文输入法中文状态toggle...
Gui,Add,Button,x86y144w70h30gStateIME,当前状态 ;GeneratedusingSmartGUICreator4.0 Gui,Show,x397y213h190w247,输入法切换 Gosub,ReadIME Return GuiClose: ExitApp ReadIME: LV_ModifyCol(3,300) Loop,HKEY_USERS,.DEFAULT\KeyboardLayout\Preload,1,1 { RegRead,Layout RegRead,IMEName,HKEY_LOCAL_MACHINE,...
(IME_GET() = "0" or A_PriorHotkey <> "~j" or A_TimeSincePriorHotkey > 200) { return } ;MsgBox, % A_Cursor SwitchIME(04090409) ; 英语(美国) 美式键盘 Send, {ESC} Return ; ~SHIFT:: ; if (A_PriorHotkey <> "~SHIFT" or A_TimeSincePriorHotkey > 400) { ; return ; } ...
SwitchIME(Layout) Return SwitchIME(dwLayout) { DllCall("SendMessage", UInt, WinActive("A"), UInt, 80, UInt, 1, UInt, DllCall("LoadKeyboardLayout", Str, dwLayout, UInt, 1)) } NextIME: DllCall("SendMessage", UInt, WinActive("A"), UInt, 80, UInt, 1, UInt, DllCall("ActivateKe...
说明: ahk_group是个好东西 switchime函数用于小鹤、搜狗等没有问题。如其他输入法无效请自行替换"0000804" 脚本: #NoTrayIcon #SingleInstance force GroupAdd, EN, Ahk_class Vim GroupAdd, EN, Ahk_class TTOTAL_CMD GroupAdd, EN, Ahk_class…
;SwitchIME(04090409) ; 英语(美国) 美式键盘 ;Return ;$RSHIFT:: ;A_Cursor <> "IBeam" 就是查看光盘状态 有了这个在大纲快速下一个就不会被esc掉了 ~j:: ;MsgBox, %A_PriorHotkey% ;MsgBox, %A_Cursor% ;只有中文输入法的时候,才会切换英文输入法,终于完美了 ...
参考了https://github.com/WwwZMing/IMEAutoSwitch_V2 他的逻辑判断还是太复杂,而且偶尔会报错,浏览器输入经常会切换错误,原版KBLAutoSwitch已经停更 而且既然已经用上ahk,再开一个ahk编写的KBLAutoSwitch觉得怪怪的,于是自己精简一段出来: 我电脑上只安装一个中文输入法,逻辑比较简单: Auto_Switch := 1 ; 监听...
AutoSwitchIME2.exe 打包二进制编译文件 Jan 22, 2024 README.md 更新注释并修复一部分应用切换失效 Jan 22, 2024 WMAutoSwitch.ini Initial commit Jan 22, 2024 Repository files navigation README 输入法自动切换 修改自KBLAutoSwitch的AHK自动切换输入法脚本。因为原作者Github代码不更新了(本体仍在更新)所以用...