Jump to content



Photo

cURL UDF - a UDF for transferring data with URL syntax


  • Please log in to reply
34 replies to this topic

#1 seangriffin

seangriffin

    Polymath

  • Active Members
  • PipPipPipPip
  • 223 posts

Posted 11 February 2012 - 01:56 PM

Greetings everyone,

I'd like to start my own cURL UDF, with a focus on a nice and simple syntax. There are many other cURL samples in the forum, though I found them too difficult to understand and use.

This UDF uses the libcurl library, as opposed to the cURL command-line tool, to provide better integration with AutoIT and better performance.

REQUIREMENTS:
  • Windows 32-bit (not tested under Windows 64-bit but may work if a 64-bit version of libcurl below is used)
  • AutoIt3 3.2 or higher
  • libcurl v7.21.7 or higher (libcurl.dll, libeay32.dll & libssl32.dll) - see http://curl.haxx.se or download link below
LIST OF FUNCTIONS:

cURL_initialise()
cURL_easy($url, $cookie_file = "", $cookie_action = 0, $output_type = 0, $output_file = "", $postfields = "", $ssl_verifypeer = 0, $noprogress = 1, $followlocation = 0, $http_headers = "")
cURL_multi($url, $cookie_file = "", $cookie_action = 0, $output_type = 0, $output_file = "", $postfields = "", $ssl_verifypeer = 0, $noprogress = 1, $followlocation = 0, $http_headers = "")
cURL_cleanup()

EXAMPLES:

Note - To make these examples work, you must make sure the three libcurl DLLs (libcurl.dll, libeay32.dll & libssl32.dll) are present in the same folder as the examples.

Example #1 - Reading HTML from a webpage.

#include <cURL.au3> ; Initialise cURL cURL_initialise() ; Return the HTML from "http://www.autoitscript.com/site" $out = cURL_easy("http://www.autoitscript.com/site/") ; Output the HTML to the console ConsoleWrite($out) ; Clean up cURL cURL_cleanup()

Example #2 - Reading a binary file from a website.

#include <cURL.au3> ; Initialise cURL cURL_initialise() ; Output the file from "http://web.aanet.com.au/seangriffin/content/computing/development/eBay%20Bargain%20Hunter%20setup.exe" to "tmp.exe" cURL_easy("http://web.aanet.com.au/seangriffin/content/computing/development/eBay%20Bargain%20Hunter%20setup.exe", "", 0, 1, "tmp.exe") ; Clean up cURL cURL_cleanup()

Example #3 - Reading HTML from a webpage, and writing the cookie to a file.

#include <cURL.au3> ; Initialise cURL cURL_initialise() ; Return the HTML from "http://www.about.com", and the cookie to the file "cookie.txt" $out = cURL_easy("http://www.about.com", "cookie.txt", 2) ; output the HTML to the console ConsoleWrite($out) ; Clean up cURL cURL_cleanup()

DOWNLOAD:

Recent Version of libcurl.dll, libeay32.dll & libssl32.dll (required)
http://fossies.org/windows/www/curl-7.24.0-ssl-sspi-zlib-static-bin-w32.zip

Latest Version - v0.5 (03/04/12)
Attached File  cURL.au3   17.53K   717 downloads

Edited by seangriffin, 03 April 2012 - 04:05 AM.

Cheers,Sean.See my other UDFs:SAP UDF - Automate SAPJava UDF - Automate Java Applications & AppletsTesseract (OCR) UDF - Capture text from applications, controls and the desktopTextract (OCR) UDF - Capture text from applications and controlsFileSystemMonitor UDF - File, Folder, Drive and Shell MonitoringVLC (Media Player) UDF - Creating and controlling a VLC control in AutoITGoogle Maps UDF - Creating and controlling Google Maps (inc. GE) in AutoITSAPIListBox (Speech Recognition) UDF - Speech Recognition via the Microsoft Speech (SAPI) ListBoxeBay UDF - Automate eBay using the eBay APIChildProc (Parallel Processing) UDF - Parallel processing functions for AutoITHyperCam (Screen Recording) UDF - Automate the HyperCam screen recorderTwitter UDF - Automate Twitter using OAuth and the Twitter APIcURL UDF - a UDF for transferring data with URL syntaxSee my other Tools:Rapid Menu Writer - Add menus to DVDs in secondsTV Player - Automates the process of playing videos on an external TV / MonitorRapid Video Converter - A tool for resizing and reformatting videosRapid DVD Creator - Convert videos to DVD fast and for freeZapPF - A tool for killing processes and recycling filesSean's eBay Bargain Hunter - Find last minute bargains in eBay using AutoITSean's GUI Inspector - A scripting tool for querying GUIsTransLink Journey Planner with maps - Incorporating Google Maps into an Australian Journey PlannerAutomate Qt and QWidgetsBrisbane City Council Event Viewer - See what's going on in Brisbane, Australia







#2 matwachich

matwachich

    Polymath

  • Active Members
  • PipPipPipPip
  • 215 posts

Posted 11 February 2012 - 03:01 PM

Can you provide us direct link the the dlls??? Thanks

#3 seangriffin

seangriffin

    Polymath

  • Active Members
  • PipPipPipPip
  • 223 posts

Posted 12 February 2012 - 10:49 AM

Can you provide us direct link the the dlls??? Thanks


Hi matwachich,

Good idea. I've included both a link to the libcurl author's site (http://curl.haxx.se), and a direct link to a recent copy of the libcurl DLLs, in my post at the top.

Cheers,

Sean

Edited by seangriffin, 12 February 2012 - 10:50 AM.

Cheers,Sean.See my other UDFs:SAP UDF - Automate SAPJava UDF - Automate Java Applications & AppletsTesseract (OCR) UDF - Capture text from applications, controls and the desktopTextract (OCR) UDF - Capture text from applications and controlsFileSystemMonitor UDF - File, Folder, Drive and Shell MonitoringVLC (Media Player) UDF - Creating and controlling a VLC control in AutoITGoogle Maps UDF - Creating and controlling Google Maps (inc. GE) in AutoITSAPIListBox (Speech Recognition) UDF - Speech Recognition via the Microsoft Speech (SAPI) ListBoxeBay UDF - Automate eBay using the eBay APIChildProc (Parallel Processing) UDF - Parallel processing functions for AutoITHyperCam (Screen Recording) UDF - Automate the HyperCam screen recorderTwitter UDF - Automate Twitter using OAuth and the Twitter APIcURL UDF - a UDF for transferring data with URL syntaxSee my other Tools:Rapid Menu Writer - Add menus to DVDs in secondsTV Player - Automates the process of playing videos on an external TV / MonitorRapid Video Converter - A tool for resizing and reformatting videosRapid DVD Creator - Convert videos to DVD fast and for freeZapPF - A tool for killing processes and recycling filesSean's eBay Bargain Hunter - Find last minute bargains in eBay using AutoITSean's GUI Inspector - A scripting tool for querying GUIsTransLink Journey Planner with maps - Incorporating Google Maps into an Australian Journey PlannerAutomate Qt and QWidgetsBrisbane City Council Event Viewer - See what's going on in Brisbane, Australia

#4 guinness

guinness

    guinness

  • MVPs
  • 10,414 posts

Posted 12 February 2012 - 11:03 AM

A great UDF, thanks Sean.

Example List: _AdapterConnections()_AlwaysRun()_AppMon()_AppMonEx()_BinaryBin()_CheckMsgBox()_CmdLineRaw()_ContextMenu()_DesktopDimensions()_DisplayPassword()_Fibonacci()_FileCompare()_FileCompareContents()_FileNameByHandle()_FilePrefix/SRE()_FindInFile()_GetBackgroundColor()/_SetBackgroundColor()_GetConrolID()_GetCtrlClass()_GetDirectoryFormat()_GetDriveMediaType()_GetFilename()/_GetFilenameExt()_GetHardwareID()_GetIP()_GetIP_Country()_GetOSLanguage()_GetSavedSource_GetStringSize()_GetSystemPaths()_GetURLImage()_GIFImage()_GoogleWeather()_GUICtrlCreateGroup()_GUICtrlListBox_CreateArray()_GUICtrlListView_CreateArray()_GUICtrlListView_SaveCSV()_GUICtrlListView_SaveHTML()_GUICtrlListView_SaveTxt()_GUICtrlListView_SaveXML()_GUICtrlMenu_Recent()_GUICtrlMenu_SetItemImage()_GUICtrlTreeView_CreateArray()_GUIDisable()_GUIImageList_SetIconFromHandle()_GUISetIcon()_Icon_Clear()/_Icon_Set()_InetGet()_InetGetGUI()_InetGetProgress()_IPDetails()_IsFileOlder()_IsGUID()_IsHex()_IsPalindrome()_IsRegKey()_IsStringRegExp()_IsUPX()_IsValidType()_IsWebColor()_Language()_Log()_MicrosoftInternetConnectivity()_MSDNDataType()_PathFull/GetRelative/Split()_PathSplitEx()_PrintFromArray()_ProgressSetMarquee()_ReDim()_RockPaperScissors()/_RockPaperScissorsLizardSpock()_ScrollingCredits_SelfDelete()_SelfRename()_SelfUpdate()_SendTo()_ShellAll()_ShellFile()_ShellFolder()_SingletonHWID()_SingletonPID()_Startup()_StringIsValid()_StringReplaceWholeWord()_StringStripChar()_Temperature()_TrialPeriod()_UKToUSDate()/_USToUKDate()_WinAPI_CreateGUID()_WMIDateStringToDate()/_DateToWMIDateString()AutoIt SearchAutoIt3 PortableAutoItWinGetTitle()/AutoItWinSetTitle()CodingFileInstallrGeoIP databaseGUI - Only Close ButtonGUI ExamplesGUICtrlDeleteImage()GUICtrlGetBkColor()GUICtrlGetStyle()GUIGetBkColor()LockFile()PasteBinSciTE JumpSignature CreatorWM_COPYDATAMore Examples...Updated: 11/04/2013


#5 JohnOne

JohnOne

    John

  • Active Members
  • PipPipPipPipPipPip
  • 8,869 posts

Posted 12 February 2012 - 11:34 AM

Indee is a good idea, although I cannot get the example to work .



! couldn't connect to host
! couldn't connect to host
! couldn't connect to host
! couldn't connect to host


I added the dlls to firewall exceptions.
AutoIt Absolute Beginners Require a serial
Run('hh mk:@MSITStore:'&StringReplace(@AutoItExe,'.exe','.chm')&'::/html/tutorials/helloworld/helloworld.htm','',@SW_MAXIMIZE)

#6 matwachich

matwachich

    Polymath

  • Active Members
  • PipPipPipPip
  • 215 posts

Posted 12 February 2012 - 04:10 PM

Try This
#include <cURL.au3> ; Initialise cURL cURL_initialise() ; Connect and get index page $out = cURL_easy("cookie.txt", "<a href='http://www.autoitscript.com/' class='bbc_url' title=''>http://www.autoitscript.com/"</a>, "") ; output the HTTP response to the console ConsoleWrite($out) ; Clean up cURL cURL_cleanup()


@seangriffin: you should have provided a simple example

#7 guinness

guinness

    guinness

  • MVPs
  • 10,414 posts

Posted 12 February 2012 - 04:13 PM

@seangriffin: you should have provided a simple example

He did, see original post.

Example List: _AdapterConnections()_AlwaysRun()_AppMon()_AppMonEx()_BinaryBin()_CheckMsgBox()_CmdLineRaw()_ContextMenu()_DesktopDimensions()_DisplayPassword()_Fibonacci()_FileCompare()_FileCompareContents()_FileNameByHandle()_FilePrefix/SRE()_FindInFile()_GetBackgroundColor()/_SetBackgroundColor()_GetConrolID()_GetCtrlClass()_GetDirectoryFormat()_GetDriveMediaType()_GetFilename()/_GetFilenameExt()_GetHardwareID()_GetIP()_GetIP_Country()_GetOSLanguage()_GetSavedSource_GetStringSize()_GetSystemPaths()_GetURLImage()_GIFImage()_GoogleWeather()_GUICtrlCreateGroup()_GUICtrlListBox_CreateArray()_GUICtrlListView_CreateArray()_GUICtrlListView_SaveCSV()_GUICtrlListView_SaveHTML()_GUICtrlListView_SaveTxt()_GUICtrlListView_SaveXML()_GUICtrlMenu_Recent()_GUICtrlMenu_SetItemImage()_GUICtrlTreeView_CreateArray()_GUIDisable()_GUIImageList_SetIconFromHandle()_GUISetIcon()_Icon_Clear()/_Icon_Set()_InetGet()_InetGetGUI()_InetGetProgress()_IPDetails()_IsFileOlder()_IsGUID()_IsHex()_IsPalindrome()_IsRegKey()_IsStringRegExp()_IsUPX()_IsValidType()_IsWebColor()_Language()_Log()_MicrosoftInternetConnectivity()_MSDNDataType()_PathFull/GetRelative/Split()_PathSplitEx()_PrintFromArray()_ProgressSetMarquee()_ReDim()_RockPaperScissors()/_RockPaperScissorsLizardSpock()_ScrollingCredits_SelfDelete()_SelfRename()_SelfUpdate()_SendTo()_ShellAll()_ShellFile()_ShellFolder()_SingletonHWID()_SingletonPID()_Startup()_StringIsValid()_StringReplaceWholeWord()_StringStripChar()_Temperature()_TrialPeriod()_UKToUSDate()/_USToUKDate()_WinAPI_CreateGUID()_WMIDateStringToDate()/_DateToWMIDateString()AutoIt SearchAutoIt3 PortableAutoItWinGetTitle()/AutoItWinSetTitle()CodingFileInstallrGeoIP databaseGUI - Only Close ButtonGUI ExamplesGUICtrlDeleteImage()GUICtrlGetBkColor()GUICtrlGetStyle()GUIGetBkColor()LockFile()PasteBinSciTE JumpSignature CreatorWM_COPYDATAMore Examples...Updated: 11/04/2013


#8 matwachich

matwachich

    Polymath

  • Active Members
  • PipPipPipPip
  • 215 posts

Posted 12 February 2012 - 05:33 PM

i said: simple!
As i can see, the example provided connects to "Jazz" on socket 9443, i don't even know what is this program
I meant that he should have provided a simple example, that will work for every body, even who don't have this Jazz

#9 JohnOne

JohnOne

    John

  • Active Members
  • PipPipPipPipPipPip
  • 8,869 posts

Posted 12 February 2012 - 05:52 PM

My own fault I should have looked at where it was trying to connect.

Cheers for example, works perfectly.

Thanks seangriffin, I used a lot of you UDFs.
AutoIt Absolute Beginners Require a serial
Run('hh mk:@MSITStore:'&StringReplace(@AutoItExe,'.exe','.chm')&'::/html/tutorials/helloworld/helloworld.htm','',@SW_MAXIMIZE)

#10 matwachich

matwachich

    Polymath

  • Active Members
  • PipPipPipPip
  • 215 posts

Posted 12 February 2012 - 06:16 PM

I tried a url to a binary data (a file on my webserver) and it don't work!
A solution???

Thanx!

#11 seangriffin

seangriffin

    Polymath

  • Active Members
  • PipPipPipPip
  • 223 posts

Posted 13 February 2012 - 12:26 AM

Try This

#include <cURL.au3> ; Initialise cURL cURL_initialise() ; Connect and get index page $out = cURL_easy("cookie.txt", "<a href='http://www.autoitscript.com/' class='bbc_url' title=''>http://www.autoitscript.com/"</a>, "") ; output the HTTP response to the console ConsoleWrite($out) ; Clean up cURL cURL_cleanup()


@seangriffin: you should have provided a simple example

Great suggestion matwachich,

Have replaced my example in the post at the top.

Cheers,

Sean.

Edited by seangriffin, 13 February 2012 - 12:27 AM.

Cheers,Sean.See my other UDFs:SAP UDF - Automate SAPJava UDF - Automate Java Applications & AppletsTesseract (OCR) UDF - Capture text from applications, controls and the desktopTextract (OCR) UDF - Capture text from applications and controlsFileSystemMonitor UDF - File, Folder, Drive and Shell MonitoringVLC (Media Player) UDF - Creating and controlling a VLC control in AutoITGoogle Maps UDF - Creating and controlling Google Maps (inc. GE) in AutoITSAPIListBox (Speech Recognition) UDF - Speech Recognition via the Microsoft Speech (SAPI) ListBoxeBay UDF - Automate eBay using the eBay APIChildProc (Parallel Processing) UDF - Parallel processing functions for AutoITHyperCam (Screen Recording) UDF - Automate the HyperCam screen recorderTwitter UDF - Automate Twitter using OAuth and the Twitter APIcURL UDF - a UDF for transferring data with URL syntaxSee my other Tools:Rapid Menu Writer - Add menus to DVDs in secondsTV Player - Automates the process of playing videos on an external TV / MonitorRapid Video Converter - A tool for resizing and reformatting videosRapid DVD Creator - Convert videos to DVD fast and for freeZapPF - A tool for killing processes and recycling filesSean's eBay Bargain Hunter - Find last minute bargains in eBay using AutoITSean's GUI Inspector - A scripting tool for querying GUIsTransLink Journey Planner with maps - Incorporating Google Maps into an Australian Journey PlannerAutomate Qt and QWidgetsBrisbane City Council Event Viewer - See what's going on in Brisbane, Australia

#12 seangriffin

seangriffin

    Polymath

  • Active Members
  • PipPipPipPip
  • 223 posts

Posted 13 February 2012 - 12:30 AM

i said: simple!
As i can see, the example provided connects to "Jazz" on socket 9443, i don't even know what is this program
I meant that he should have provided a simple example, that will work for every body, even who don't have this Jazz


Sorry for that poor example - I've removed it. It would only work on my computer anyway if a product named "Rational Quality Manager" installed. I developed the UDF to allow me to use cURL with that product's API.
Cheers,Sean.See my other UDFs:SAP UDF - Automate SAPJava UDF - Automate Java Applications & AppletsTesseract (OCR) UDF - Capture text from applications, controls and the desktopTextract (OCR) UDF - Capture text from applications and controlsFileSystemMonitor UDF - File, Folder, Drive and Shell MonitoringVLC (Media Player) UDF - Creating and controlling a VLC control in AutoITGoogle Maps UDF - Creating and controlling Google Maps (inc. GE) in AutoITSAPIListBox (Speech Recognition) UDF - Speech Recognition via the Microsoft Speech (SAPI) ListBoxeBay UDF - Automate eBay using the eBay APIChildProc (Parallel Processing) UDF - Parallel processing functions for AutoITHyperCam (Screen Recording) UDF - Automate the HyperCam screen recorderTwitter UDF - Automate Twitter using OAuth and the Twitter APIcURL UDF - a UDF for transferring data with URL syntaxSee my other Tools:Rapid Menu Writer - Add menus to DVDs in secondsTV Player - Automates the process of playing videos on an external TV / MonitorRapid Video Converter - A tool for resizing and reformatting videosRapid DVD Creator - Convert videos to DVD fast and for freeZapPF - A tool for killing processes and recycling filesSean's eBay Bargain Hunter - Find last minute bargains in eBay using AutoITSean's GUI Inspector - A scripting tool for querying GUIsTransLink Journey Planner with maps - Incorporating Google Maps into an Australian Journey PlannerAutomate Qt and QWidgetsBrisbane City Council Event Viewer - See what's going on in Brisbane, Australia

#13 seangriffin

seangriffin

    Polymath

  • Active Members
  • PipPipPipPip
  • 223 posts

Posted 13 February 2012 - 12:52 AM

I tried a url to a binary data (a file on my webserver) and it don't work!
A solution???

Thanx!


Hi matwachich,

My fault. I put a "BinaryToString" call in the UDF to convert all output back to text. I overlooked the case where users might actually want a binary output. I will probably add another parameter to specify output type, and default it to text (because I think that will be the popular option).

You've made me realise I should add more features though. Like file input and output.

I guess cURL does a hell of alot. I've only just scratched the service.

I'll come up with a new version with a text / binary option, and file input and output at least. Hope to have it ready soon.

Cheers,

Sean.

Edited by seangriffin, 13 February 2012 - 12:53 AM.

Cheers,Sean.See my other UDFs:SAP UDF - Automate SAPJava UDF - Automate Java Applications & AppletsTesseract (OCR) UDF - Capture text from applications, controls and the desktopTextract (OCR) UDF - Capture text from applications and controlsFileSystemMonitor UDF - File, Folder, Drive and Shell MonitoringVLC (Media Player) UDF - Creating and controlling a VLC control in AutoITGoogle Maps UDF - Creating and controlling Google Maps (inc. GE) in AutoITSAPIListBox (Speech Recognition) UDF - Speech Recognition via the Microsoft Speech (SAPI) ListBoxeBay UDF - Automate eBay using the eBay APIChildProc (Parallel Processing) UDF - Parallel processing functions for AutoITHyperCam (Screen Recording) UDF - Automate the HyperCam screen recorderTwitter UDF - Automate Twitter using OAuth and the Twitter APIcURL UDF - a UDF for transferring data with URL syntaxSee my other Tools:Rapid Menu Writer - Add menus to DVDs in secondsTV Player - Automates the process of playing videos on an external TV / MonitorRapid Video Converter - A tool for resizing and reformatting videosRapid DVD Creator - Convert videos to DVD fast and for freeZapPF - A tool for killing processes and recycling filesSean's eBay Bargain Hunter - Find last minute bargains in eBay using AutoITSean's GUI Inspector - A scripting tool for querying GUIsTransLink Journey Planner with maps - Incorporating Google Maps into an Australian Journey PlannerAutomate Qt and QWidgetsBrisbane City Council Event Viewer - See what's going on in Brisbane, Australia

#14 seangriffin

seangriffin

    Polymath

  • Active Members
  • PipPipPipPip
  • 223 posts

Posted 13 February 2012 - 06:48 AM

Version 0.2 is now available for download.

Changes include:
  • Made $url the first parameter for cURL_easy().
  • Replaced all cookie parameters with $cookie_action and $cookie_file.
  • Added $output_type and $output_file parameters.
No input file support yet for HTTP requests, only output file.
Cheers,Sean.See my other UDFs:SAP UDF - Automate SAPJava UDF - Automate Java Applications & AppletsTesseract (OCR) UDF - Capture text from applications, controls and the desktopTextract (OCR) UDF - Capture text from applications and controlsFileSystemMonitor UDF - File, Folder, Drive and Shell MonitoringVLC (Media Player) UDF - Creating and controlling a VLC control in AutoITGoogle Maps UDF - Creating and controlling Google Maps (inc. GE) in AutoITSAPIListBox (Speech Recognition) UDF - Speech Recognition via the Microsoft Speech (SAPI) ListBoxeBay UDF - Automate eBay using the eBay APIChildProc (Parallel Processing) UDF - Parallel processing functions for AutoITHyperCam (Screen Recording) UDF - Automate the HyperCam screen recorderTwitter UDF - Automate Twitter using OAuth and the Twitter APIcURL UDF - a UDF for transferring data with URL syntaxSee my other Tools:Rapid Menu Writer - Add menus to DVDs in secondsTV Player - Automates the process of playing videos on an external TV / MonitorRapid Video Converter - A tool for resizing and reformatting videosRapid DVD Creator - Convert videos to DVD fast and for freeZapPF - A tool for killing processes and recycling filesSean's eBay Bargain Hunter - Find last minute bargains in eBay using AutoITSean's GUI Inspector - A scripting tool for querying GUIsTransLink Journey Planner with maps - Incorporating Google Maps into an Australian Journey PlannerAutomate Qt and QWidgetsBrisbane City Council Event Viewer - See what's going on in Brisbane, Australia

#15 saik0

saik0

    Seeker

  • New Members
  • 1 posts

Posted 27 February 2012 - 06:06 AM

Great work! Do you have any plans on adding parsed progress data in the near future?

#16 PPCC

PPCC

    Seeker

  • Active Members
  • 16 posts

Posted 28 February 2012 - 09:29 AM

Error message, please help:

>Running:(3.3.8.0):C:Program FilesAutoIt3autoit3.exe "D:cURL - Example 1.au3"     D:cURL.au3 (112) : ==> Subscript used with non-Array variable.: $hCurlHandle = $hCurlHandle[0] $hCurlHandle = $hCurlHandle^ ERROR ->10:27:47 AutoIT3.exe ended.rc:1 >Exit code: 1   Time: 1.655


#17 ViRnik

ViRnik

    Seeker

  • Active Members
  • 12 posts

Posted 04 March 2012 - 08:19 PM

Error message, please help:

>Running:(3.3.8.0):C:Program FilesAutoIt3autoit3.exe "D:cURL - Example 1.au3"   D:cURL.au3 (112) : ==> Subscript used with non-Array variable.: $hCurlHandle = $hCurlHandle[0] $hCurlHandle = $hCurlHandle^ ERROR ->10:27:47 AutoIT3.exe ended.rc:1 >Exit code: 1   Time: 1.655

got same problem.

EDIT: was reading other examples and find that:
http://www.autoitscript.com/forum/topic/...3irrlicht-20/page__p__797688#e

Dlls are 32bit. That means you have to run 32bit AutoIt when using them.

BTW is there any way to get content from a site that generate it from JS?

Edited by ViRnik, 05 March 2012 - 08:27 AM.


#18 Taek

Taek

    Seeker

  • Active Members
  • 9 posts

Posted 11 March 2012 - 06:56 AM

With cURL in linux you are able to poll a website for it's html output content, so anything displayed in the html will get pulled down if the UDF has the right functions for it.

got same problem.

EDIT: was reading other examples and find that:
http://www.autoitscript.com/forum/topic/...3irrlicht-20/page__p__797688#e

Dlls are 32bit. That means you have to run 32bit AutoIt when using them.

BTW is there any way to get content from a site that generate it from JS?



#19 smartee

smartee

    Hippies.They're everywhere.

  • Active Members
  • PipPipPipPipPipPip
  • 653 posts

Posted 22 March 2012 - 07:16 PM

hi Sean,

Nice, an easy to use function :bye: , libcurl usage usually tends to become technical.

Do you have plans to make this into a full fledged libcurl wrapper UDF?

If so, I have wrapped quite a bit of libcurl's dll functions (at one time or the other), I'm sure I can lend a hand, or maybe I should whip them into the UDF standards and make a new thread for a libcurl UDF :oops:

Regards,
smartee

#20 seangriffin

seangriffin

    Polymath

  • Active Members
  • PipPipPipPip
  • 223 posts

Posted 29 March 2012 - 10:40 PM

hi Sean,

Nice, an easy to use function :bye: , libcurl usage usually tends to become technical.

Do you have plans to make this into a full fledged libcurl wrapper UDF?

If so, I have wrapped quite a bit of libcurl's dll functions (at one time or the other), I'm sure I can lend a hand, or maybe I should whip them into the UDF standards and make a new thread for a libcurl UDF :oops:

Regards,
smartee


Hi smartee,

I would love to get your input yes. I have limited time on UDF work these days and only started this one because I had a great need for it at work. But because I'm using it each day I'm happy to spend time on it.

Something I do urgently need in the UDF is multi mode support. It currently only supports easy mode, and as I'm finding easy mode is blocking certain activities in Windows 32-bit when it runs, and slows my computer such that I can't get much work done. Apparently multi mode fixes this. Do you have any solution for multi mode? Maybe we can split the UDF into two modes.
Cheers,Sean.See my other UDFs:SAP UDF - Automate SAPJava UDF - Automate Java Applications & AppletsTesseract (OCR) UDF - Capture text from applications, controls and the desktopTextract (OCR) UDF - Capture text from applications and controlsFileSystemMonitor UDF - File, Folder, Drive and Shell MonitoringVLC (Media Player) UDF - Creating and controlling a VLC control in AutoITGoogle Maps UDF - Creating and controlling Google Maps (inc. GE) in AutoITSAPIListBox (Speech Recognition) UDF - Speech Recognition via the Microsoft Speech (SAPI) ListBoxeBay UDF - Automate eBay using the eBay APIChildProc (Parallel Processing) UDF - Parallel processing functions for AutoITHyperCam (Screen Recording) UDF - Automate the HyperCam screen recorderTwitter UDF - Automate Twitter using OAuth and the Twitter APIcURL UDF - a UDF for transferring data with URL syntaxSee my other Tools:Rapid Menu Writer - Add menus to DVDs in secondsTV Player - Automates the process of playing videos on an external TV / MonitorRapid Video Converter - A tool for resizing and reformatting videosRapid DVD Creator - Convert videos to DVD fast and for freeZapPF - A tool for killing processes and recycling filesSean's eBay Bargain Hunter - Find last minute bargains in eBay using AutoITSean's GUI Inspector - A scripting tool for querying GUIsTransLink Journey Planner with maps - Incorporating Google Maps into an Australian Journey PlannerAutomate Qt and QWidgetsBrisbane City Council Event Viewer - See what's going on in Brisbane, Australia




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users