autoit 将输入法修改为英文输入法

如果能用ControlSend,就不推荐用send,如果非要用send,可以切换输入法为英文再send.

$hWnd = WinGetHandle("[ACTIVE]");$hWnd 为目标窗口句柄,这里设置的是当前活动窗口
$ret = DllCall("user32.dll", "long", "LoadKeyboardLayout", "str", "", "int", + )
DllCall("user32.dll", "ptr", "SendMessage", "hwnd", $hWnd, "int", 0x50, "int", , "int", $ret[])
Send('nh')
上一篇:在JSP页面中输出JSON格式数据


下一篇:JSON(三)——java中对于JSON格式数据的解析之json-lib与jackson