模拟开始运行cmd命令工具

易语言 2020-09-25 15:36:33

模拟开始运行cmd命令工具

键盘_组合按键 (82, 91)
延迟 (2000)
hwnd = 窗口_取句柄 (, , “#32770”, “运行”)
hwnd2 = 窗口_取句柄 (hwnd, , “ComboBox”, )
hwnd2 = 窗口_取句柄 (hwnd2, , “Edit”, )
调试输出 (hwnd2)
窗口_置控件内容 (hwnd2, “cmd”)
延迟 (500)
hwnd3 = 窗口_取句柄 (hwnd, , “Button”, “确定”)
调试输出 (hwnd3)
鼠标_消息 (hwnd3)