Jump to content

help for modem reboot


Nerox
 Share

Recommended Posts

ShellExecute(@ProgramFilesDir & "\Reset\Reset.bat")
sleep(300000)
_IECreate("www.xxxx.com")

this code firstly reboot modem and waiting 300seconds than connect the webside.i dont want to wait 300seconds.modem takes ip between 100-300 seconds.

i want to connect this site when the modem is on how can i do that.

Link to comment
Share on other sites

ping router ip and go on when you obtain reply?

While 1
    Sleep(1000)
    $site = Ping("www.autoitscript.com",1000)
    If $site Then
    ;Do whatever you want
    EndIf
WEnd
Edited by ChromeFan
Website: www.cerescode.comForum: www.forum.cerescode.comIRC: irc.freenode.net , Channel: #Ceres--------------------Autoit Wrappers, Great additions to your script (Must See) (By: Valuater)Read It Befor Asking Question Click Here...--------------------Join Monoceres's Forums http://www.monoceres.se--------------------There are three kinds of people: Those who make things happen, those who watch things happen, and those who ask, ‘What happened?’” –Casey Stengel
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...