I'm trying to automate the process of saving PDF
invoices for bookkeeping purposes. The method suggested here does not work because a login is required to access the invoices.
I currently have a macro that navigates to the page, logs in and opens the links to each invoice. The URL
scheme for these invoices is .../account/invoice/?invoice_number=XXXXXX
. Navigating to each of these URL
brings up the files in the
window. I would like the files to automatically save, but according to this page, the Always ask before opening this type of file
option was depreciated from IE 10 and 11 due to security reasons.
I attempted to automatically click Save
using this method, but the code here seems to be for a different version of IE.
The line:
hWnd = FindWindow("#32770", "File Download")
was modified to:
hwnd = FindWindow("#32770", "View Downloads - Windows Internet Explorer")
This successfully captures the download window, but it fails to find the &Save
button for me to click. My guess would be that it's because there are multiple save buttons.
Any ideas would be greatly appreciated! Thanks.