Jump to content

IE download file


wolle7
 Share

Recommended Posts

Hi,

I have a problem downloading a file with IE.

The download is initiated via a click on a button in a form.

<form name="Form1" method="post" action="details.aspx?abc=1KC3T" id="Form1">

<input type="submit" name="btnDL" value="Download File" id="btnDL" />

I do it like this:

$o_form = _IEFormGetObjByName ($oIE, "Form1")

$download = _IEFormElementGetObjByName ($o_form, "btnDL")

_IEAction ($download, "click")

But now I get in the top of the IE a notice that I'm downloadig a file with risk, and if I'm sure I shall click in the top notice. Hwo is it possible to disbale this notice ?

Then to save the file I though I use the "Send" command to handle the download dialog box. Or is there an better way downloading this file automated ?

Cheers Wolle

Cheers Wolle

Link to comment
Share on other sites

You can disable the the notice through ur IE preferences or use the mouse right click it and do what you would normally do.

Post your code because code says more then your words can. SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y. Use Opt("MustDeclareVars", 1)[topic="84960"]Brett F's Learning To Script with AutoIt V3[/topic][topic="21048"]Valuater's AutoIt 1-2-3, Class... is now in Session[/topic]Contribution: [topic="87994"]Get SVN Rev Number[/topic], [topic="93527"]Control Handle under mouse[/topic], [topic="91966"]A Presentation using AutoIt[/topic], [topic="112756"]Log ConsoleWrite output in Scite[/topic]

Link to comment
Share on other sites

You can disable the the notice through ur IE preferences or use the mouse right click it and do what you would normally do.

Is it possible to do that via autoit, because the script may run on a computer which one has different settings than mine. I guess it's a registry key which I have to manipulate, isn't it ?

Cheers Wolle

Link to comment
Share on other sites

The "Information Bar" is a Win32 control in the browser window and is not accessible from the DOM or IE.au3. You can use standard AutoIt Win* functions to manipulate it if you are unable to avoid it.

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

Link to comment
Share on other sites

Also, see if you can get to the file by URL with INetGet

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

Link to comment
Share on other sites

The "Information Bar" is a Win32 control in the browser window and is not accessible from the DOM or IE.au3. You can use standard AutoIt Win* functions to manipulate it if you are unable to avoid it.

Dale

What do you mean with standard AutoIt Win* functions - sorry I'm new here.

The INetGet unfortunately does not work because I don't know the source location of the file - I only get it when I click on the download button.

Cheers Wolle

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...