说明: ahk_group是个好东西 switchime函数用于小鹤、搜狗等没有问题。
说明:
ahk_group是个好东西
switchime函数用于小鹤、搜狗等没有问题。如其他输入法无效请自行替换”0000804″
脚本:
#NoTrayIcon
#SingleInstance force
GroupAdd, EN, Ahk_class Vim
GroupAdd, EN, Ahk_class TTOTAL_CMD
GroupAdd, EN, Ahk_class Photoshop
Loop
{
WinWaitActive, Ahk_group EN
switchime(0)
ActiveHwnd := WinExist("A")
WinWaitNotActive, Ahk_id %ActiveHwnd%
}
#if WinActive("Ahk_group EN")
Shift:: switchime()
~Escape:: switchime(0)
switchime(ime := "A")
{
if (ime = 1)
{
DllCall("SendMessage", UInt, WinActive("A"), UInt, 80, UInt, 1, UInt, DllCall("LoadKeyboardLayout", Str,"00000804", UInt, 1))
}
else If (ime = 0)
{
DllCall("SendMessage", UInt, WinActive("A"), UInt, 80, UInt, 1, UInt, DllCall("LoadKeyboardLayout", Str,, UInt, 1))
}
Else If (ime = "A")
{
;ime_status:=DllCall("GetKeyboardLayout","int",0,UInt)
Send, #{Space}
}
}
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。


怎么使用啊?如何锁定某个输入法?
好东西,赞一下
看起来不错,学习一下
老兄,这个怎么使用呀
,比如单击shift就是英文,双击shift中文
这个不错啊,貌似默认是英文,我就是要把TC锁定成英文,这个不错!