; 使用示例:
; SwitchIME(0x04090409) ; 关闭输入法
; SwitchIME(00000804) ; 切换到英文(搜狗)输入法
SwitchIME(dwLayout){
HKL:=DllCall("LoadKeyboardLayout", Str, dwLayout, UInt, 1)
ControlGetFocus,ctl,A
SendMessage,0x50,0,HKL,%ctl%,A
}
~Esc::
SwitchIME(0x04090409)
SwitchIME(00000804)
return