03-03-2011, 07:10 PM
I have a script I am using that logs into my Verizon router and reboots it, the entire script works well however it is not repeating , here is the code, am I missing anything?
rep
run "http://192.168.1.1/htmlV/restart.asp"
wait 120 WC win("Connect to 192.168.1.1"); err
Acc a=acc("User name:" "TEXT" win("Connect to 192.168.1.1" "#32770") "Edit" "" 0x1801 0x0 0x20000040)
a.SetValue("admin")
120
Acc apass=acc("Password:" "TEXT" win("Connect to 192.168.1.1" "#32770") "Edit" "" 0x1801 0x20000000 0x20000040)
apass.SetValue("admin")
but id(1 win("Connect to 192.168.1.1" "#32770"))
120
Htm el=htm("INPUT" " OK " "" win("Verizon - Windows Internet Explorer" "IEFrame") 0 4 0x421)
el.Click; err
120
clo win("Verizon - Windows Internet Explorer" "IEFrame")
2400
rep
run "http://192.168.1.1/htmlV/restart.asp"
wait 120 WC win("Connect to 192.168.1.1"); err
Acc a=acc("User name:" "TEXT" win("Connect to 192.168.1.1" "#32770") "Edit" "" 0x1801 0x0 0x20000040)
a.SetValue("admin")
120
Acc apass=acc("Password:" "TEXT" win("Connect to 192.168.1.1" "#32770") "Edit" "" 0x1801 0x20000000 0x20000040)
apass.SetValue("admin")
but id(1 win("Connect to 192.168.1.1" "#32770"))
120
Htm el=htm("INPUT" " OK " "" win("Verizon - Windows Internet Explorer" "IEFrame") 0 4 0x421)
el.Click; err
120
clo win("Verizon - Windows Internet Explorer" "IEFrame")
2400