falko Posted December 12, 2009 Share Posted December 12, 2009 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 Link to comment Share on other sites More sharing options...
d0n Posted December 12, 2009 Share Posted December 12, 2009 maybe you should try INetGet function Link to comment Share on other sites More sharing options...
DaleHohm Posted December 12, 2009 Share Posted December 12, 2009 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 Link to comment Share on other sites More sharing options...
falko Posted December 13, 2009 Author Share Posted December 13, 2009 (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 December 13, 2009 by falko Link to comment Share on other sites More sharing options...
DaleHohm Posted December 14, 2009 Share Posted December 14, 2009 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 Link to comment Share on other sites More sharing options...
falko Posted December 14, 2009 Author Share Posted December 14, 2009 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 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