jemmail Posted January 16, 2014 Share Posted January 16, 2014 Hi All, I'm new here... but not a newbie with AutoIt ... I'm fighting with the new (old in fact) behavior since IE9 to download files... The new notification Bar (with the yellow color), is not scriptable with the "default" IE Autoit Tools. Can someone please post a working snippet to wait for this bar and click the "save" button or better the "save as" button... Many thanks and best regards from Switzerland.... Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted January 16, 2014 Moderators Share Posted January 16, 2014 Is the file something you can simply grab without opening the webpage period? InetGet("http://www.autoitscript.com/cgi-bin/getfile.pl?autoit3/autoit-v3-setup.exe", "Setup.exe") "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
jemmail Posted January 16, 2014 Author Share Posted January 16, 2014 Nope, unfortunately not... Website needs credentials, cookie and download link is dynamic (with a big token in URL)... Link to comment Share on other sites More sharing options...
Mechaflash Posted January 16, 2014 Share Posted January 16, 2014 open the webpage, login, swipe the url for the download, then try InetGet() with the retrieved URL. Should have the token intact. Spoiler “Hello, ladies, look at your man, now back to me, now back at your man, now back to me. Sadly, he isn’t me, but if he stopped using ladies scented body wash and switched to Old Spice, he could smell like he’s me. Look down, back up, where are you? You’re on a boat with the man your man could smell like. What’s in your hand, back at me. I have it, it’s an oyster with two tickets to that thing you love. Look again, the tickets are now diamonds. Anything is possible when your man smells like Old Spice and not a lady. I’m on a horse.” Link to comment Share on other sites More sharing options...
LarsJ Posted January 16, 2014 Share Posted January 16, 2014 This can be done with the UI Automation framework. You can add an >event handler which will fire an event when the Save Notification Bar is opened. Then you can add code to click the button.Give me a few days may be also the weekend and I'll add a minimalistic example that shows how to do it. Controls, File Explorer, ROT objects, UI Automation, Windows Message MonitorCompiled code: Accessing AutoIt variables, DotNet.au3 UDF, Using C# and VB codeShell menus: The Context menu, The Favorites menu. Shell related: Control Panel, System Image ListsGraphics related: Rubik's Cube, OpenGL without external libraries, Navigating in an image, Non-rectangular selectionsListView controls: Colors and fonts, Multi-line header, Multi-line items, Checkboxes and icons, Incremental searchListView controls: Virtual ListViews, Editing cells, Data display functions Link to comment Share on other sites More sharing options...
jemmail Posted January 17, 2014 Author Share Posted January 17, 2014 Thanks for your help ! @LarsJ : awesome ! I will be more than happy ! Link to comment Share on other sites More sharing options...
Solution LarsJ Posted January 18, 2014 Solution Share Posted January 18, 2014 You can find the code >here. jemmail 1 Controls, File Explorer, ROT objects, UI Automation, Windows Message MonitorCompiled code: Accessing AutoIt variables, DotNet.au3 UDF, Using C# and VB codeShell menus: The Context menu, The Favorites menu. Shell related: Control Panel, System Image ListsGraphics related: Rubik's Cube, OpenGL without external libraries, Navigating in an image, Non-rectangular selectionsListView controls: Colors and fonts, Multi-line header, Multi-line items, Checkboxes and icons, Incremental searchListView controls: Virtual ListViews, Editing cells, Data display functions Link to comment Share on other sites More sharing options...
jemmail Posted January 20, 2014 Author Share Posted January 20, 2014 Many many thanks LarsJ I will try it as soon as possible.. 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