mnb Posted August 3, 2011 Share Posted August 3, 2011 After the File Download dialog box pops up, I try to use the following script to click the Save button. WinActivate("File Download") ControlClick("File Download", "", "[CLASS:Button; INSTANCE:2]") However, the Save button is not clicked but highlighted instead. Any suggestions to get the Save button clicked? Thanks. Link to comment Share on other sites More sharing options...
KiwiCoder Posted August 3, 2011 Share Posted August 3, 2011 Hello mnb and Welcome to the Forum im new to autoit so i wouldnt know much but a quick google search led me to this Link to comment Share on other sites More sharing options...
mnb Posted August 3, 2011 Author Share Posted August 3, 2011 (edited) Thank you very much, KiwiCoder. It works by adding the sleep function to delay clicking the button. Working Script: WinActivate("File Download") Sleep ("1000") ControlClick("File Download", "", "[CLASS:Button; INSTANCE:2]") Edited August 3, 2011 by mnb Link to comment Share on other sites More sharing options...
daillest319 Posted April 13, 2012 Share Posted April 13, 2012 I know this is old but ontop of what you wrote is there way to also put the file name with he destination and click the save button 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