|
以下代码能够正常关掉IE弹出的来自网页的消息对话框,但是关不掉进程,请帮忙看下,谢谢@!
#include <IE.au3>
#include <CoProc.au3>
$iPID=_CoProc('_exceldianji')
Func _exceldianji()
While 1
If WinExists("来自网页的消息","确定") Then
ControlClick("来自网页的消息", "", "[CLASS:Button; INSTANCE:1]", "left", 2)
EndIf
Sleep(50)
WEnd
EndFunc
$oIE = _IEAttach("http://192.168.1.225:8080/general-.htm","url")
$oIE = _IEFrameGetObjByName($oIE,"shortcut")
_IELinkClickByText($oIE," 注销")
ProcessClose($iPID)
$oIE = _IEAttach("http://192.168.1.225:8080/general-.files/relogin.php","url")
Sleep(1500)
_IEQuit ($oIE) |
|