name15 Posted January 26, 2010 Share Posted January 26, 2010 how can check if computer connect to internet or not to show message you want update or not Link to comment Share on other sites More sharing options...
James Posted January 26, 2010 Share Posted January 26, 2010 You could use Ping(). I always use "www.google.com" as the address I ping because their servers are so reliable. Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
name15 Posted January 26, 2010 Author Share Posted January 26, 2010 can you post an example Link to comment Share on other sites More sharing options...
James Posted January 26, 2010 Share Posted January 26, 2010 can you post an exampleErm why? There is a perfectly good help file. Look, I've even been kind enough to link you directly to Ping(). Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted January 26, 2010 Share Posted January 26, 2010 Look, I've even been kind enough to link you directly to Ping().You shouldn't spoil him like that, now he will never learn anything! .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
kaotkbliss Posted January 26, 2010 Share Posted January 26, 2010 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 ***disclaimer*** ignore this post, it was in sarcastic fun and humor 010101000110100001101001011100110010000001101001011100110010000 001101101011110010010000001110011011010010110011100100001 My Android cat and mouse gamehttps://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek We're gonna need another Timmy! Link to comment Share on other sites More sharing options...
James Posted January 26, 2010 Share Posted January 26, 2010 You shouldn't spoil him like that, now he will never learn anything! 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 Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
name15 Posted January 27, 2010 Author Share Posted January 27, 2010 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 Link to comment Share on other sites More sharing options...
kaotkbliss Posted January 27, 2010 Share Posted January 27, 2010 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 gamehttps://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek We're gonna need another Timmy! Link to comment Share on other sites More sharing options...
name15 Posted January 27, 2010 Author Share Posted January 27, 2010 thank......... Link to comment Share on other sites More sharing options...
Yashied Posted January 27, 2010 Share Posted January 27, 2010 Or use _WinAPI_IsNetworkAlive() from WinAPIEx.au3. My UDFs: iKey | FTP Uploader | Battery Checker | Boot Manager | Font Viewer | UDF Keyword Manager | Run Dialog Replacement | USBProtect | 3D Axis | Calculator | Sleep | iSwitcher | TM | NetHelper | File Types Manager | Control Viewer | SynFolders | DLL Helper Animated Tray Icons UDF Library | Hotkeys UDF Library | Hotkeys Input Control UDF Library | Caret Shape UDF Library | Context Help UDF Library | Most Recently Used List UDF Library | Icons UDF Library | FTP UDF Library | Script Communications UDF Library | Color Chooser UDF Library | Color Picker Control UDF Library | IPHelper (Vista/7) UDF Library | WinAPI Extended UDF Library | WinAPIVhd UDF Library | Icon Chooser UDF Library | Copy UDF Library | Restart UDF Library | Event Log UDF Library | NotifyBox UDF Library | Pop-up Windows UDF Library | TVExplorer UDF Library | GuiHotKey UDF Library | GuiSysLink UDF Library | Package UDF Library | Skin UDF Library | AITray UDF Library | RDC UDF Library Appropriate path | Button text color | Gaussian random numbers | Header's styles (Vista/7) | ICON resource enumeration | Menu & INI | Tabbed string size | Tab's skin | Pop-up circular menu | Progress Bar without animation (Vista/7) | Registry export | Registry path jumping | Unique hardware ID | Windows alignment More... 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