#include<IE.au3>
$i = 0
While 1
$i += 1
Sleep("2000")
$oIE = _IECreate("192.168.1.1")
Sleep("800")
WinWaitActive("Configuration - 360安全浏览器")
Send("admin")
Sleep("200")
WinWaitActive("Configuration - 360安全浏览器")
send("{Tab}")
Sleep("200")
WinWaitActive("Configuration - 360安全浏览器")
send("123")
Sleep("200")
$oIE.document.forms.item.elements.item("Login" ).click
WinWaitActive("Configuration - 360安全浏览器")
Sleep("1000")
$oIE1 = _IECreate("http://192.168.1.1/cgi-bin/ccgi?pageID=27")
_IELoadWait($oIE1)
$Input = _IEGetObjByID($oIE1, "idSubmit")
$Input.value = "Submit"
$OK = _IEGetObjByID($oIE1, "idSubmit")
$OK.click
MsgBox(, "", "循环次数: " & $i)
WEnd
|