Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 06/04/2015 in all areas

  1. I built my own libcurl for AutoIt based on BinaryCall UDF. libcurl - the multiprotocol file transfer library The Features: Pure AutoIt script, no DLLs needed.Build with SSL/TLS and zlib support (without libidn, libiconv, libssh2).Full easy-interface and partial multi-interface support.Data can read from or write to autoit variables or files.Smaller code size (compare to most libcurl DLL).The version information of this build: Curl Version: libcurl/7.42.1SSL Version: mbedTLS/1.3.10Libz Version: 1.2.8Protocols: ftp,ftps,http,httpsHere are the helper functions (not include in libcurl library). Curl_DataWriteCallback()Curl_DataReadCallback()Curl_FileWriteCallback()Curl_FileReadCallback()Curl_Data_Put()Curl_Data_Get()Curl_Data_Cleanup()See the example script for detail usage. Curl.zip
    4 points
  2. You say you are facing a problem. Please describe the problem. It will aid your quest for quick help.
    1 point
  3. We have this wonderful Wiki out there, which has a lot of great information... https://www.autoitscript.com/wiki/UDF-spec
    1 point
  4. You have typo in __Curl_lstrlenW - wrong function called. Excellent! Thanks for sharing.
    1 point
  5. RTFC

    MCF - MetaCode File UDF

    Okay, as far as I can tell none of the various Example scripts for querying Google Translate posted on the forum works anymore, because they've moved to a business subscription service model where you have to pay $20 per 1M words, which sucks. In my opinion (and in the spirit of the free, fully accessible internet for all), this kind of service should be free. So while we wait for such a free alternative service to emerge, here's an example of how one could still access Google's new service: #include <Array.au3> #include <IE.au3> Local $tag="* # * # *" Local $oIE=_IECreate("https://translate.google.com/#auto/es") Local $oForm=_IEFormGetCollection($oIE,0) Local $oQuery=_IEGetObjByName($oForm,"text") _IEFormElementSetValue($oQuery, $tag & @CR & "Hello World" & @CR & "This is a test" & @CR & $tag) _IEFormSubmit($oForm) _IELoadWait($oIE) Local $oText=_IEGetObjById($oIE,"gt-res-data") $lines=StringSplit(_IEPropertyGet($oText,"innerText"),@CRLF,1) _IEQuit($oIE) _ArrayDelete($lines,_ArraySearch($lines,$tag,1,0,0,1,0) & "-" & $lines[0]) _ArrayDelete($lines,"1-" & _ArraySearch($lines,$tag,1,0,0,1,1)) $lines[0]=UBound($lines)-1 _ArrayDisplay($lines) Doubtless this will change again at some point and no longer work. I'm consciously not providing a fully-fledged UDF, just a simple example to illustrate how this could be done, if one were so inclined. And moderators, please let me know if this contravenes forum rules, then I'll remove it again (I'm not sure...). @Deye, I still have to implement this in my UI_Translator when I have some more time, maybe this weekend.
    1 point
  6. Sensible variable names and tidy code are very important good luck!
    1 point
  7. I think it should be $oExcelSave = ObjGet($path2) ; Get an Excel Object from an existing filename
    1 point
  8. Just Remove the $WS_POPUP then it get's Resizing or what do you want?>.< PHByZSBkYXRhLXBiY2tsYW5nPSJhdXRvaXQiIGRhdGEtcGJja3RhYnNpemU9IjQiIGNsYXNzPSJwcmV0dHlwcmludCBsYW5nLWF1dG9pdCBpcHNDb2RlIj4jaW5jbHVkZSAmbHQ7R3VpQ29uc3RhbnRzLmF1MyZndDsNCjsgPT09PT09PT09PT09PT09PT0gbWFpbiBHVUkgPT09PT09PT09PT09PT09PT09PT0NCiRNYWluID0gR1VJQ3JlYXRlICgmcXVvdDt0ZXN0JnF1b3Q7LCAyMDAsMTUwLC0xLC0xLCRXU19QT1BVUCskV1NfVEhJQ0tGUkFNRSkNCg0KR1VJU2V0U3RhdGUgKCkNCg0KV2hpbGUgMQ0KICAgICRtc2cgPSBHVUlHZXRNc2coKQ0KICAgIElmICRtc2cgPSAkR1VJX0VWRU5UX0NMT1NFIFRoZW4gRXhpdExvb3ANCldFbmQ8L3ByZT4= This looks like an AES encrypted Code
    1 point
  9. playlet

    ---

    ---
    1 point
×
×
  • Create New...