如果能用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')