Tab键强制切换中文,Esc键强制切换英文,且不影响原来按键的使用
~Tab::
SwitchIME(00000804)
return
~Esc::
SwitchIME(0x04090409)
return
SwitchIME(dwLayout){
HKL:=DllCall("LoadKeyboardLayout", Str, dwLayout, UInt, 1)
ControlGetFocus,ctl,A
SendMessage,0x50,0,HKL,%ctl%,A
}