Run("notepad.exe") Local $hWnd = WinWait("[CLASS:Notepad]", "", 10) ConsoleWrite("$hWnd="&$hWnd&@CRLF) ControlSend($hWnd, "", "Edit1", "窗口最小化或不可见状态下不能发送命令到指定按钮吗"&@CRLF) Sleep(1500) Send("!{F}{X}") Sleep(1500) Local $hWnd = WinWait("记事本", "", 10) ConsoleWrite("$hWnd="&$hWnd&@CRLF) sleep(1000) Run("mspaint.exe") sleep(1000) ControlClick($hWnd,"","Button1")
您需要 登录 才可以下载或查看,没有账号?加入
举报
本版积分规则 发表回复 回帖后跳转到最后一页
|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度
GMT+8, 2024-11-21 20:46 , Processed in 0.076069 second(s), 21 queries .
Powered by Discuz! X3.5 Licensed
© 2001-2024 Discuz! Team.