输入法搜狗,切换方式左shit中文 ,右shit是英文,请各位坛友参考
SetCapsLockState , AlwaysOff
~LShift::
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))
}
else if (ime = 0)
{
DllCall("SendMessage", UInt, WinActive("A"), UInt, 80, UInt, 1, UInt, DllCall("LoadKeyboardLayout", Str,, UInt, 1))
}
else if (ime = "A")
{
Send, #{Space}
}
}
Return
https://www.autoahk.com/archives/11488
相似度很高
补充说明,参考ahker大神的代码进行的改编,源代码地址https://www.autoahk.com/archives/11488,请各位参考