Guest rathore Posted March 30, 2004 Share Posted March 30, 2004 is there any foolproof way of knowing if the pc is connected to internet?... something that'd work both if i've dialup & if i've broadband access (like a LAN whose server connects to internet), one that works with static ip & variating one alike! Link to comment Share on other sites More sharing options...
ezzetabi Posted March 30, 2004 Share Posted March 30, 2004 (edited) You can use ping... but it does not work with proxies. You can use URLDownloadToFile function but it does not work always. Maybe you can find some other unperfect ways, the best is nest them and check the result one by one. Like you use ping (the easiest) if the result is Online you are done. Else you use UrlDownloadToFile if it is a success you are done Else Try to send a email to a fake address using blat or any other command line sender... if the email start you are done. Else so go on... Edited March 30, 2004 by ezzetabi Link to comment Share on other sites More sharing options...
Guest rathore Posted March 30, 2004 Share Posted March 30, 2004 makes some stupid sort of sense... i used to use a cmd line ftp upload tool for the purpose... much the same! but i wanted to know AU3-script-only method... i'll wait if somebody can suggest something else. Link to comment Share on other sites More sharing options...
Somerset Posted March 30, 2004 Share Posted March 30, 2004 (edited) snip the end of either lan line or phone line, and touch them against your tounge.... beyond that i can only say is open a web broswer and if it connects, you got it Edited March 30, 2004 by beerman Link to comment Share on other sites More sharing options...
condoman Posted March 30, 2004 Share Posted March 30, 2004 The suggestion works even better if you then use your cell phone and call the number attached to your mouth. Ringing current beats talk battery anytime. p.s. Added benefit is that it helps dry out armpits. Link to comment Share on other sites More sharing options...
Guest rathore Posted March 30, 2004 Share Posted March 30, 2004 yeah ...thanx a lot! Link to comment Share on other sites More sharing options...
ezzetabi Posted March 30, 2004 Share Posted March 30, 2004 makes some stupid sort of sense... Uh?!? What do you mean? Link to comment Share on other sites More sharing options...
Guest rathore Posted March 30, 2004 Share Posted March 30, 2004 plz don't misunderstand... i just meant that its a bit stupendously long method... but if that's the only way then okay! Link to comment Share on other sites More sharing options...
Valik Posted March 30, 2004 Share Posted March 30, 2004 The problem is, foolproof and anything PC related are not compatible. Even the most sure-thing isn't fully fool-proof because there are just so many variables that can't be controlled. Why care if it's some long method, though? Just write a function and #include it when you need it...? Link to comment Share on other sites More sharing options...
Guest rathore Posted March 30, 2004 Share Posted March 30, 2004 yeah maybe u're right valik... especially coz i've read a related post by u & others discussing this topic in (i reckon) idea lab. 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