SweatyOgre Posted May 29, 2004 Share Posted May 29, 2004 Is there a command that will wait for the internet connection icon to appear on the taskbar? Or maybe return whether or not it appeared? Link to comment Share on other sites More sharing options...
CyberSlug Posted May 29, 2004 Share Posted May 29, 2004 (edited) Tray icons are annoying. If you are waiting for a dialup connection to be established, you could try the following: While 1 sleep(1000) If @IPAddress1 <> "0.0.0.0" And @IPAddress1 <> "127.0.0.1" Then ExitLoop If @IPAddress2 <> "0.0.0.0" And @IPAddress2 <> "127.0.0.1" Then ExitLoop WEnd MsgBox(4096,"Info", "Internet Connection detected!") Note: you probably only need one of the two IF-tests. See "@IPAddress1 " in the help file.... Some computers have multiple adapters; and some computer configurations always return the 127.0.0.1 localhost/loopback IP address. As long as an IP Address is neither localhost nor 0.0.0.0, then you probably are connected to the internet. Edited May 29, 2004 by CyberSlug Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
SweatyOgre Posted May 29, 2004 Author Share Posted May 29, 2004 Thanks, I think that'll do the trick. Link to comment Share on other sites More sharing options...
tutor2000 Posted May 29, 2004 Share Posted May 29, 2004 Tray icons are annoying. If you are waiting for a dialup connection to be established, you could try the following: While 1 sleep(1000) If @IPAddress1 <> "0.0.0.0" And @IPAddress1 <> "127.0.0.1" Then ExitLoop If @IPAddress2 <> "0.0.0.0" And @IPAddress2 <> "127.0.0.1" Then ExitLoop WEnd MsgBox(4096,"Info", "Internet Connection detected!") Note: you probably only need one of the two IF-tests. See "@IPAddress1 " in the help file.... Some computers have multiple adapters; and some computer configurations always return the 127.0.0.1 localhost/loopback IP address. As long as an IP Address is neither localhost nor 0.0.0.0, then you probably are connected to the internet.That might help me with my advertising in my autoit based software and feed the family better. Thank you Rick Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now