Sleep("2000")
#include<IE.au3>
$address = iniread(@scriptdir & "\setting.ini","详细","IP地址","") ;
$name = iniread(@scriptdir & "\setting.ini","详细","用户名","") ;
$pass = iniread(@scriptdir & "\setting.ini","详细","密码","") ;
$oIE = _IECreate($address)
Sleep("1000")
WinWaitActive("Configuration - 360安全浏览器")
Send($name)
Sleep("200")
WinWaitActive("Configuration - 360安全浏览器")
send("{Tab}")
Sleep("200")
WinWaitActive("Configuration - 360安全浏览器")
send($pass)
Sleep("200")
$oIE.document.forms.item.elements.item ("Login").click
WinWaitActive("Configuration - 360安全浏览器")
Sleep("1000")
#include<IE.au3>
$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
在脚本跟目录下,创建个setting.ini
内容如下:[详细]
IP地址=192.168.1.1
用户名=admin
密码=123
|