rajeshontheweb Posted March 30, 2009 Share Posted March 30, 2009 BOOL InternetCheckConnection( LPCTSTR lpszUrl, DWORD dwFlags, DWORD dwReserved ); is represented as $ret = DllCall("WinInet.dll","int","InternetGetConnectedState","int_ptr",0,"int",0) $ret[0] = 1 if connected $ret[1] possibly one of these or blank $INTERNET_CONNECTION_MODEM = 0x1 $INTERNET_CONNECTION_LAN = 0x2 $INTERNET_CONNECTION_PROXY = 0x4 $INTERNET_CONNECTION_MODEM_BUSY = 0x8 $INTERNET_RAS_INSTALLED = 0x10 $INTERNET_CONNECTION_OFFLINE = 0x20 $INTERNET_CONNECTION_CONFIGURED = 0x40oÝ÷ Ø,íz¹Þ´g çyË^u+Zµê.´³ÃXäCpV ²)ÃXäCw^±êïyÛaÇhzÉíën®{ayÊ+ç-½©nyú+殶sg&WCÒFÆÄ6ÆÂgV÷CµväæWBæFÆÂgV÷C²ÂgV÷C¶çBgV÷C²ÂgV÷C´çFW&æWD6V6´6öææV7FöâgV÷C²ÂgV÷C·7G"gV÷C²ÂgV÷C¶GG¢ò÷wwrævöövÆRæ6öÒgV÷C²ÂgV÷C¶Æöæu÷G"gV÷C²ÃÂgV÷C¶Æöæu÷G"gV÷C²Ã ¦vfW0¢§&WE³ÒÒ²6÷VÆB&WGW&âbFÆÂv26ÆÆVB6÷'&V7FÇóóð§&WC³ÒÒgV÷C¶GG¢ò÷wwrævöövÆRæ6öÒgV÷C° Started late is much better than having never started it!!!!Failure is another step towards success. I've been messing around with: Adding Entry to 'Hosts'File Information Lister (Logger)Yet Another AutoIT Error Handler Yet Another AutoIT Error Handler & Debugger Control your App's TaskBar Button YCurrency Ticker (Latest Release : 16 Apr 2009)_WinInetInternetCheckConnection UDF Symantec Definitions Lister UDF _GetLocalIPAddresses UDF UDF to get Special Folder Information WMI_NetworkAdapterConfiguration2Array WMI_CDRomDriveCapabilities _ScriptExists - Check if your au3 script is running!! Uninstaller UDF Get Version for your application (at script level or compiled stage) Uninstaller Pro - faster alternative to windows application removal applet Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted March 30, 2009 Moderators Share Posted March 30, 2009 Hard to return the proper values when you don't use the proper ones in the first place (or you don't make your variables actually autoit variables with the dollar sign in front of the var name). Local $sz_url = "http://www.google.com" Local $u_flags = 0x00000001 Local $u_reserved = 0 Local $a_ret_val = DllCall("WinInet.dll", "int", "InternetCheckConnection", "str", $sz_url, "uint", $u_flags, "uint", $u_reserved) ConsoleWrite($sz_url & " is connected = " & ($a_ret_val[0] <> 0) & @CRLF) Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
rajeshontheweb Posted March 31, 2009 Author Share Posted March 31, 2009 thanks a lot :-) Started late is much better than having never started it!!!!Failure is another step towards success. I've been messing around with: Adding Entry to 'Hosts'File Information Lister (Logger)Yet Another AutoIT Error Handler Yet Another AutoIT Error Handler & Debugger Control your App's TaskBar Button YCurrency Ticker (Latest Release : 16 Apr 2009)_WinInetInternetCheckConnection UDF Symantec Definitions Lister UDF _GetLocalIPAddresses UDF UDF to get Special Folder Information WMI_NetworkAdapterConfiguration2Array WMI_CDRomDriveCapabilities _ScriptExists - Check if your au3 script is running!! Uninstaller UDF Get Version for your application (at script level or compiled stage) Uninstaller Pro - faster alternative to windows application removal applet 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