Open/Save dialogue in IE

Get help with using AutoHotkey and its commands and hotkeys
Darkoder
Posts: 3
Joined: 29 Apr 2018, 10:41

Open/Save dialogue in IE

29 Apr 2018, 11:56

How to access open/save popup in IE 10/11?

Image

I need to download file with using IE credentials and other methods like urldownloadtofile would not work.
It is impossible to turn it off with a registry keys or settings, hadn't done anything, so the last resort is Acc Library, but I don't know how to use it and haven't found a lot of info on that. All I need is just to press "save" and then close popup.

I got some info for the from Accessible info Viewer for the save button:
Hwnd: 0xA0682
Class (NN): DirectUIHWND1
Name:Save
Role: split button
Child count: 1
State: normal
Action: Press

And for the close button as well:
Hwnd: 0xA0682
Class (NN): DirectUIHWND1
Name:Close
Role: push button
Child count: 0
State: normal
Action: Press

Is it possible? :)

Useful links:

Accessible info Viewer
https://raw.githubusercontent.com/Drugoy/Autohotkey-scripts-.ahk/master/DevTools/AccViewer.ahk

Acc Library
https://raw.githubusercontent.com/Drugoy/Autohotkey-scripts-.ahk/master/Libraries/Acc.ahk

Relevant threads, my tries to adapt the code from there for my needs were unsuccessful
https://autohotkey.com/boards/viewtopic.php?t=26223
https://autohotkey.com/boards/viewtopic.php?t=30861
User avatar
jeeswg
Posts: 4994
Joined: 19 Dec 2016, 01:58
Location: UK

Re: Open/Save dialogue in IE

29 Apr 2018, 13:42

Try this to click Save then Close.

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus

Darkoder
Posts: 3
Joined: 29 Apr 2018, 10:41

Re: Open/Save dialogue in IE

29 Apr 2018, 13:55

jeeswg, you, sir, are awesome! It works!
Darkoder
Posts: 3
Joined: 29 Apr 2018, 10:41

Re: Open/Save dialogue in IE

29 Apr 2018, 18:24

UPD. It was a bit of a premature celebration. Code works perfeclty when fired up manually, but when IE goes through multiple files, it works very rare. Will upload sample code soon.

Return to “Ask For Help”

Who is online

Users browsing this forum: affebroman, Rohwedder, Scr1pter, starling22, Tusk and 14 guests