Busti Posted September 4, 2007 Share Posted September 4, 2007 code : $lol = _WinHttpOpen() MsgBox( 0, "o_O", " o O " & $lol ) MsgBox( 0, "o_O", " o O" ) Func _WinHttpOpen( $sTitle = "AutoIT Webserver" , $aProxy = 0 , $Proxy = 0 , $ProxyBypass = 0 ) #cs LPCWSTR pwszUserAgent, DWORD dwAccessType, LPCWSTR pwszProxyName, LPCWSTR pwszProxyBypass, DWORD dwFlags #ce $vRet = DllCall( "winhttp.dll", "int", "WinHttpOpen", "wstr", $aProxy , "int", $Proxy , "wstr" , $ProxyBypass , "int" , 0 ) Return $vRet EndFunc My UDF's : Startet on : 06.06.2006_CaseSearchOrReplaceStr();~> Searches OR Replaces a String,;~> With or Without Casesensivity Link to comment Share on other sites More sharing options...
martin Posted September 4, 2007 Share Posted September 4, 2007 (edited) code : $lol = _WinHttpOpen() MsgBox( 0, "o_O", " o O " & $lol ) MsgBox( 0, "o_O", " o O" ) Func _WinHttpOpen( $sTitle = "AutoIT Webserver" , $aProxy = 0 , $Proxy = 0 , $ProxyBypass = 0 ) #cs LPCWSTR pwszUserAgent, DWORD dwAccessType, LPCWSTR pwszProxyName, LPCWSTR pwszProxyBypass, DWORD dwFlags #ce $vRet = DllCall( "winhttp.dll", "int", "WinHttpOpen", "wstr", $aProxy , "int", $Proxy , "wstr" , $ProxyBypass , "int" , 0 ) Return $vRet EndFunc You need to find examples of how to use the WinHttpOpen function. You have a parameter missing, and $ProxyBypass must not be null. See here. Also, when the function does work you might want to return $vRet[0] not $vRet Edited September 4, 2007 by martin Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. 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