If ConnectedToInternet()
;Msgbox, 64, WinInet.dll, ONLINE!
run C:\Program Files\Internet Explorer\iexplore.exe
else
;Msgbox, 64, WinInet.dll, OFFLINE!
ExitApp
Return
ConnectedToInternet(flag=0x40) {
Return DllCall("Wininet.dll\InternetGetConnectedState", "Str", flag,"Int",0)
}