Jump to content
Sign in to follow this  
B3EAST

Internet connection detection

Recommended Posts

Been searching for about 3 hours and cant find anything that will help in detecting if a user has a connection to the internet. Would you just try to open a web browser to say google and if it returns fail then you would know or is there a easier way?

Share this post


Link to post
Share on other sites

#include <INet.au3>
_INetGetSource('www.google.com')
If @error Then
    MsgBox("", "", "Offline")
Else
    MsgBox("", "", "Online")
EndIfoÝ÷ Ù«­¢+ÙA¥¹ ÅÕ½ÐíÝÝܹ½½±¹½´ÅÕ½Ðì°ÈÔÀ¤)%ÉɽÈQ¡¸(5ͽà ÅÕ½ÐìÅÕ½Ðì°ÅÕ½ÐìÅÕ½Ðì°ÅÕ½Ðí=±¥¹ÅÕ½Ðì¤)±Í(5ͽà ÅÕ½ÐìÅÕ½Ðì°ÅÕ½ÐìÅÕ½Ðì°ÅÕ½Ðí=¹±¥¹ÅÕ½Ðì¤)¹%

Edited by Jex

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  

×
×
  • Create New...