|
发表于 2021-3-9 22:35:48
|
显示全部楼层
可用的代码:
#include <IE.au3>
Local $oIE = _IE_Example("form")
Local $oSubmit = _IEGetObjByName($oIE, "submitExample")
Local $hWnd = _IEPropertyGet($oIE, "hwnd")
_IEAction($oSubmit, "focus")
ControlSend($hWnd, "", "[CLASS:Internet Explorer_Server; INSTANCE:1]", "{Enter}")
; 等待警告窗口,然后点击"确定".
WinWait("[TITLE:来自网页的消息; CLASS:#32770]", "")
Sleep(500)
ControlClick("[TITLE:来自网页的消息; CLASS:#32770]", "", "[CLASS:Button; INSTANCE:1]")
Sleep(1000)
_IEQuit($oIE) |
|