Jump to content
Sign in to follow this  
Nerox

help for modem reboot

Recommended Posts

Nerox

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.

Share this post


Link to post
Share on other sites
Zomp

no answer??

ping router ip and go on when you obtain reply?

Share this post


Link to post
Share on other sites
ChromeFan

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

Share this post


Link to post
Share on other sites
Nerox

While 1
    Sleep(1000)
    $site = Ping("www.autoitscript.com",1000)
    If $site Then
;Do whatever you want
    EndIf
WEnd
its working thax for help ;)

Share this post


Link to post
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
Sign in to follow this  

×