Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
have entire script repeat every 45 minutes forever
#1
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
#2
Macro Macro1551
Code:
Copy      Help
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
#3
did you change anything?
#4
Just added tabs.
The code is correct, and should repeat. Maybe error handling can be better. Also, it should be function, not macro.
Other way - use tim. Read more in Help.


Forum Jump:


Users browsing this thread: 1 Guest(s)