I was trying to make a code to test internet connection, more reliable then "IsConnectedToInternet>".
First I tryed to use ping to do this, but failed to find any URL tha responds to it....
So, I wrote a simple code to do the job using HTTPREQUEST and I want to share with you:
Code: Select all
HTTPRequest>http://www.google.com,,GET,,strHTML,,,,
RegEx>404 Error connecting to host,strHTML,1,connection,num,0
IF>connection_1=404 Error connecting to host
MessageModal>NOT CONNECTED...
ELSE
MessageModal>CONNECTED!
ENDIF
Simple, but works. If someone has a better code, please let me know
