EKY32 Posted October 5, 2014 Share Posted October 5, 2014 Hello, I want to read data from a remote file without freezing the script, I saw InetGet can download in the background and that is what I really need.. but without downloading and writing a file, is there any way to do that please? THank you. [font="'trebuchet ms', helvetica, sans-serif;"]Please mark the answer of your question if you found it.[/font] Link to comment Share on other sites More sharing options...
JohnOne Posted October 5, 2014 Share Posted October 5, 2014 (edited) You cannot do that with native or standard UDF functions out of the box. However ProgAndy created a solution to that >Here EDIT: above method creates a file. Edited October 7, 2014 by JohnOne AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
EKY32 Posted October 5, 2014 Author Share Posted October 5, 2014 Sorry, there is something wrong with the link. [font="'trebuchet ms', helvetica, sans-serif;"]Please mark the answer of your question if you found it.[/font] Link to comment Share on other sites More sharing options...
JohnOne Posted October 5, 2014 Share Posted October 5, 2014 Oops. Fixed. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
EKY32 Posted October 5, 2014 Author Share Posted October 5, 2014 I'll give it a try, seems difficult to me. Thank you dear John. [font="'trebuchet ms', helvetica, sans-serif;"]Please mark the answer of your question if you found it.[/font] Link to comment Share on other sites More sharing options...
JohnOne Posted October 5, 2014 Share Posted October 5, 2014 It does work, I tried it while the thread was in progress, and as far as I know it's the only example you will find. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
jguinch Posted October 5, 2014 Share Posted October 5, 2014 Maybe you can find a way with Guinness's >_InetGet. I also made something like this in this post : Spoiler Network configuration UDF, _DirGetSizeByExtension, _UninstallList Firefox ConfigurationArray multi-dimensions, Printer Management UDF Link to comment Share on other sites More sharing options...
EKY32 Posted October 5, 2014 Author Share Posted October 5, 2014 Nice examples thank you, but I don't want to make a DOWNLOAD process, I don't want to use a temprary file, possible somehow? [font="'trebuchet ms', helvetica, sans-serif;"]Please mark the answer of your question if you found it.[/font] Link to comment Share on other sites More sharing options...
jguinch Posted October 5, 2014 Share Posted October 5, 2014 The idea I pointed out was the external execution using the /AutoIt3ExecuteLine parameter. You can probably do the same thing (using /AutoIt3ExecuteScript maybe) for _InetGetSource. But you will have to retrieve the result from the 2nd script to the 1st. Spoiler Network configuration UDF, _DirGetSizeByExtension, _UninstallList Firefox ConfigurationArray multi-dimensions, Printer Management UDF Link to comment Share on other sites More sharing options...
EKY32 Posted October 5, 2014 Author Share Posted October 5, 2014 Yes I got you, that will require running another process, and this is a problem in my case. Thank you very much. [font="'trebuchet ms', helvetica, sans-serif;"]Please mark the answer of your question if you found it.[/font] Link to comment Share on other sites More sharing options...
jguinch Posted October 5, 2014 Share Posted October 5, 2014 Why is it a problem ? Spoiler Network configuration UDF, _DirGetSizeByExtension, _UninstallList Firefox ConfigurationArray multi-dimensions, Printer Management UDF Link to comment Share on other sites More sharing options...
guinness Posted October 5, 2014 Share Posted October 5, 2014 The idea I pointed out was the external execution using the /AutoIt3ExecuteLine parameter. You can probably do the same thing (using /AutoIt3ExecuteScript maybe) for _InetGetSource. But you will have to retrieve the result from the 2nd script to the 1st. It's not possible to "execute" UDF functions this way. -_0 UDF List: _AdapterConnections() • _AlwaysRun() • _AppMon() • _AppMonEx() • _ArrayFilter/_ArrayReduce • _BinaryBin() • _CheckMsgBox() • _CmdLineRaw() • _ContextMenu() • _ConvertLHWebColor()/_ConvertSHWebColor() • _DesktopDimensions() • _DisplayPassword() • _DotNet_Load()/_DotNet_Unload() • _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() • _GUIRegisterMsg() • _GUISetIcon() • _Icon_Clear()/_Icon_Set() • _IdleTime() • _InetGet() • _InetGetGUI() • _InetGetProgress() • _IPDetails() • _IsFileOlder() • _IsGUID() • _IsHex() • _IsPalindrome() • _IsRegKey() • _IsStringRegExp() • _IsSystemDrive() • _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() • _StringCompact() • _StringIsValid() • _StringRegExpMetaCharacters() • _StringReplaceWholeWord() • _StringStripChars() • _Temperature() • _TrialPeriod() • _UKToUSDate()/_USToUKDate() • _WinAPI_Create_CTL_CODE() • _WinAPI_CreateGUID() • _WMIDateStringToDate()/_DateToWMIDateString() • Au3 script parsing • AutoIt Search • AutoIt3 Portable • AutoIt3WrapperToPragma • AutoItWinGetTitle()/AutoItWinSetTitle() • Coding • DirToHTML5 • FileInstallr • FileReadLastChars() • GeoIP database • GUI - Only Close Button • GUI Examples • GUICtrlDeleteImage() • GUICtrlGetBkColor() • GUICtrlGetStyle() • GUIEvents • GUIGetBkColor() • Int_Parse() & Int_TryParse() • IsISBN() • LockFile() • Mapping CtrlIDs • OOP in AutoIt • ParseHeadersToSciTE() • PasswordValid • PasteBin • Posts Per Day • PreExpand • Protect Globals • Queue() • Resource Update • ResourcesEx • SciTE Jump • Settings INI • SHELLHOOK • Shunting-Yard • Signature Creator • Stack() • Stopwatch() • StringAddLF()/StringStripLF() • StringEOLToCRLF() • VSCROLL • WM_COPYDATA • More Examples... Updated: 22/04/2018 Link to comment Share on other sites More sharing options...
EKY32 Posted October 5, 2014 Author Share Posted October 5, 2014 Why is it a problem ? In my script i'm using a delicate execution that I can't use external process with it, this process may not run for a reason, or may not stop (due to firewall or something..), this will not serve my application main purpose. [font="'trebuchet ms', helvetica, sans-serif;"]Please mark the answer of your question if you found it.[/font] Link to comment Share on other sites More sharing options...
JohnOne Posted October 5, 2014 Share Posted October 5, 2014 What is problem with method I linked you to? It does exactly what you want. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
EKY32 Posted October 6, 2014 Author Share Posted October 6, 2014 (edited) Ah yes dear John I see that, I told you that I don't want a temp file to be written with the returned data, in that link you gave me (which is the best way till now) a temp file is written called ".pipemyautoitinetgetpipe" with the returned data, and MsgBox(0, '', $bData) that should get the buffer data is not getting anything, you should read the data from the temp file. Edited October 6, 2014 by EKY32 [font="'trebuchet ms', helvetica, sans-serif;"]Please mark the answer of your question if you found it.[/font] Link to comment Share on other sites More sharing options...
JohnOne Posted October 6, 2014 Share Posted October 6, 2014 I was unaware that a named pipe was a file, I'm still not convinced. Where exactly is this file written to? AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
EKY32 Posted October 7, 2014 Author Share Posted October 7, 2014 (edited) I was unaware that a named pipe was a file, I'm still not convinced. Where exactly is this file written to? Dear John, In the >example you gave me, there is a file written to the @ScriptDir called ".pipemyautoitinetgetpipe" & @AutoItPID and in has the returned data in it. Edited October 7, 2014 by EKY32 [font="'trebuchet ms', helvetica, sans-serif;"]Please mark the answer of your question if you found it.[/font] Link to comment Share on other sites More sharing options...
JohnOne Posted October 7, 2014 Share Posted October 7, 2014 So it does. Sorry about that. EKY32 1 AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
EKY32 Posted October 7, 2014 Author Share Posted October 7, 2014 Yes Means no big difference than InetGet [for me as I simply understood]. [font="'trebuchet ms', helvetica, sans-serif;"]Please mark the answer of your question if you found it.[/font] Link to comment Share on other sites More sharing options...
JohnOne Posted October 7, 2014 Share Posted October 7, 2014 Yes. As far as I can tell InternetReadFile could be used to download into a buffer, so you might want to take a look at that if you're familiar with API. Or try your look with winhttp. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. 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