Sign in to follow this  
Followers 0
falko

Automatic download with IE

6 posts in this topic

Hi all,

my script works fine, it does some clicks within IE and finally follows a link to a file-download.

But how how to click within the IE-"download"-window on "save" (the default is "Cancel") and how

to give a file-name and directory in the common-dialog?

Im sure that anyody has as little example how to do this?

Any help welcome!

cu

Werner

Share this post


Link to post
Share on other sites



maybe you should try INetGet function

Share this post


Link to post
Share on other sites

See here: http://www.autoitscript.com/forum/index.php?showtopic=92907&view=findpost&p=746271 and the second example for _IEAction for ideas.

Dale


Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Dale,

just to make clear:

IE opens a "download" popup when following the link, autoIt processing stops until this window is closed.

So how can I get control to this popup window?

And how get conrol to the buttons (which aren't any form elements)

cu

Werner

Edited by falko

Share this post


Link to post
Share on other sites

You aparently did not look at the references I gave you.


Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Share this post


Link to post
Share on other sites

Dale,

I did look at the references, and a I wrote: I didn't get access to the window.

What solved the problem was a sleep(1200) here:

Opt("WinTitleMatchMode", 2) ; to allow text "ow" for "download"

WinWait("ow")

winactivate("ow") ; to see what happens

sleep(1200)

$hChoose = WinGetHandle("ow")

Without that, button is activated (focus), but not pressed.

cu

Werner

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0