Sign in to follow this  
Followers 0
Tukata

How to check internet connection ?

9 posts in this topic

Hi,

I want to check if user is on-line but I don't want to use CheckIP or any other command which tries to establish connection. Is that possible ?

Thank you

Tuk

Share this post


Link to post
Share on other sites



You want to know if a PC is online without making a connection? That's impossible! You have to make a connection to the internet to know wether or not you are online or not.

Share this post


Link to post
Share on other sites

Hi,

maybe Ping() ???

So long,

Mega


Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Share this post


Link to post
Share on other sites

Hi,

maybe Ping() ???

So long,

Mega

I would like to add to that, that it is wise to ping to a website that doesn't have much downtime. Like www.google.com.

Share this post


Link to post
Share on other sites

But if I use CheckIP it tries to establish connection.

If user will click "Cancel" then how will I know ?

Tuk

Share this post


Link to post
Share on other sites

I agree with th.meger

Direct from the help...

$var = Ping("www.AutoItScript.com",250)
If $var Then; also possible:  If @error = 0 Then ...
    Msgbox(0,"Status","Online, roundtrip was:" & $var)
Else
    Msgbox(0,"Status","An error occured with number: " & @error)
EndIf

Read the help file and experiment :lmao:

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

Thanks a lot.

This is probably what I need.

One question: If I just want to know if the user who runs the project is connected to the internet, then I can put any url like CNN or yahoo, am I right ?

Thank you

Tuk

Edited by Tukata

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

Hi,

yes I think so. Try it with google or ibm ...

I haven't looked into Ping() but maybe the only prob could be, that it is related to the settings in IE. So if you are using different proxy settings in IE and Firefox, BANG. :lmao:

So long,

Mega

Edited by th.meger

Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Share this post


Link to post
Share on other sites

Is that means some users may have problems with this script ?

Tuk

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  
Followers 0