oemript Posted May 5, 2019 Posted May 5, 2019 Referring to following coding and image, I would like to know on how to handle click button and save file into specific folder using AutoIT. Saving Path : C:\download\ Does anyone have any suggestions? Thanks in advance for any suggestions #include <IE.au3> #include <array.au3> #include <File.au3> #include <MsgBoxConstants.au3> $oIE = _IECreate("https://fred.stlouisfed.org/series/WALCL") $oTag = _IEGetObjById ($oIE, "download-button-container") If Not IsObj($oTag) Then Else _IEAction ($oTag, "click") _IELoadWait ($oIE, 5000) EndIf
Nine Posted May 6, 2019 Posted May 6, 2019 (edited) @oemript I made it working to download the csv file. Look for InetGet () to actually get the file. You will need to use .href of the object to obtain the csv file. And my last hint, your $oTag doesn't use the right id, take a careful look at the DOM. Happy scripting ! Edited May 6, 2019 by Nine “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
oemript Posted May 6, 2019 Author Posted May 6, 2019 (edited) Referring to following coding, I would like to know on how to change save path into C:\temp folder Local $sFilePath = _WinAPI_GetTempFileName(@TempDir) Do you have any suggestions? Thanks, to everyone very much for any suggestions (^v^) Edited May 7, 2019 by oemript
oemript Posted May 7, 2019 Author Posted May 7, 2019 Referring to following image, I would like to know on what function should be used to retrieve href : URL based on given id="download-data" Do you have any suggestions? Thanks, to everyone very much for any suggestions (^v^)
oemript Posted May 7, 2019 Author Posted May 7, 2019 Solved with another approach ... Thank you very much for suggestions (^v^)
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