Jump to content

how can check if computer connect to internet or not


name15
 Share

Recommended Posts

Usually I just pull up internet browser and hit refresh. If something comes up then I'm connected, if page cannot be displayed, something's wrong. Or I look at my wireless icon :D

***disclaimer***

ignore this post, it was in sarcastic fun and humor

010101000110100001101001011100110010000001101001011100110010000

001101101011110010010000001110011011010010110011100100001

My Android cat and mouse game
https://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek

We're gonna need another Timmy!

Link to comment
Share on other sites

Baiscally something like:

$ping=Ping ( "www.google.com" )

if $ping=0 then

msgbox(0,"Error!",@error)

elseif $ping<>0 then

msgbox(0,"Success","You are connected")

endif

or....

from the helpfile and link provided previously

$var = Ping("www.google.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

010101000110100001101001011100110010000001101001011100110010000

001101101011110010010000001110011011010010110011100100001

My Android cat and mouse game
https://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek

We're gonna need another Timmy!

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...