Surili Posted November 12, 2020 Share Posted November 12, 2020 Hi Everyone - new AutoIT user here so please pardon if this is a stupid question. I've browsed the forums and can't find an answer that I could implement myself. I have a website that I click a button on the page to download data. Upon doing so, Internet Explorer prompts me at the bottom with: "Do you want to open or save -filename- from -website-" How do I automate it such that my script automatically clicks "Save". What I have written so far to bring to that point is: #include <IE.au3> Local $oIE = _IECreate("https://beta.bls.gov/dataViewer/view/timeseries/CES8000000001") $oAccess = _IEGetObjById($oIE, "excelclickCE") _IEAction($oAccess, "click") Link to comment Share on other sites More sharing options...
Nine Posted November 12, 2020 Share Posted November 12, 2020 Here : #include <IE.au3> Local $oIE = _IECreate("https://beta.bls.gov/dataViewer/view/timeseries/CES8000000001") $oAccess = _IEGetObjById($oIE, "excelclickCE") _IEAction($oAccess, "click") Sleep (800) Local $hWnd= _IEPropertyGet ($oIE, "hwnd") Local $hCtrl = ControlGetHandle ($hWnd, "", "DirectUIHWND1") ConsoleWrite ("Control = " & $hCtrl & @CRLF) ControlSend ($hWnd, "", $hCtrl, "{F6}{TAB}") Sleep (800) ControlSend ($hWnd, "", $hCtrl, "{ENTER}") “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) Screen Scraping Multi-Threading Made Easy 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