Jump to content
Sign in to follow this  
name15

how can check if computer connect to internet or not

Recommended Posts

name15

how can check if computer connect to internet or not

to show message you want update or not

Share this post


Link to post
Share on other sites
kaotkbliss

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!

Share this post


Link to post
Share on other sites
James

You shouldn't spoil him like that, now he will never learn anything! :D

With me, everyone gets one present for being a newbie, two if they have sincerely tried to get an answer. I had plenty of help, and I got lazy - I bucked my ideas up though :huggles:

Share this post


Link to post
Share on other sites
name15

why i tell you get simple example for ping

because i didn't know about ip or ping

you should give me little start for how to writ script

Share this post


Link to post
Share on other sites
kaotkbliss

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!

Share this post


Link to post
Share on other sites
Yashied

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.