How to tell if I'm connected to the internet? - 15/11/03 11:01 AM
Is there a function if mIRC that can tell me if I'm connected to the internet?
Thanks.
Thanks.
alias findconnect { ; use COM to run rasdial & "find" the string "Connected to" in the output, which is written to a file (ras.txt) ; this will wait till the above finishes before continuing, but will not freeze mIRC var %a = $ticks .comopen %a WScript.Shell if !$comerr { .comclose %a $com(%a,Run,3,bstr,cmd.exe /c rasdial|find "Connected to">ras.txt,uint,0,bool,true) } ; check that ras.txt is more than 0 bytes ; if no connection is found it will be empty ; if a connection is found it will contain [color:green]Connected to[/color] if $file(ras.txt) { echo -a call.your.email.check.from.here } .remove ras.txt }