Jump to content

Sleep for 5 seconds if internet speed is 40Kbps to 50 Kbps


Recommended Posts

How can i add sleep command using internet speed.
If my internet speed is 40-50Kbps then sleep for 5 seconds,
If my internet speed is 30-40Kbps then sleep for 4 seconds,
If my internet speed is 20-30Kbps then sleep for 3 seconds.

*Sleep command used bitween my costom script, Example,

RunWait("rasdial /disconnect", "", @SW_HIDE) ; Stop connect from start
Sleep(5000)
RunWait("rasdial Internet", "", @SW_HIDE) ; Connect again

 

Edited by Nareshm
Link to comment
Share on other sites

You could perhaps try doing this with  Ping  and condition the Millisecond return if above 100 or if error then ..

even by timing out InetGet  with $INET_FORCERELOAD stand alone or as as a second check like if the ping command came slow or errors out ..

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

×
×
  • Create New...