Jump to content

Recommended Posts

Posted

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.

Posted (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 by mnb
  • 8 months later...

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
×
×
  • Create New...