Jump to content

Autoit script for download Firefox file


falukky
 Share

Recommended Posts

Hi @falukky.

Use the window class: "MozillaDialogClass"

The controls does not seem to be accessible, so you would need to use ControlSend or ControlClick to activate the OK button.

So with WinActivate , Sleep and the functions above, you should be good to go.

Link to comment
Share on other sites

On 9/5/2017 at 4:48 PM, falukky said:

And this works fine but the question is if this is enough 

Only you would know, right?

A suggestion would be implementing any kind of window based statement like WinExists, WinWait, WinWaitActive or maybe a hook with window creation?

Also add some kind of code checking if window focus is lost, while you wait for the OK button to be available?

But you could check the checkbox stating that you want FF to do that action automatically every time for that file-type.

Link to comment
Share on other sites

If you want to do it with only keys, space will check the checkbox if it has focus.

Edit:

Tab will help you iterate elements and give them focus.

Edited by genius257
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...