Sign in to follow this  
Followers 0
boraldo

How to work with file chooser.

7 posts in this topic

#1 ·  Posted (edited)

I want to use Autoit with some web tool. This tool opens in browser "Choose file" dialog for uploading/downloading file and then Autoit should choose file or destinantion directory.

How can I do it ?

Edited by boraldo

Share this post


Link to post
Share on other sites



FileOpenDialog(), FileSaveDialog() functions?


When the words fail... music speaks

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

FileOpenDialog(), FileSaveDialog() functions?

These functions open dialogs themselves. I need to work with already opened dialog. Edited by boraldo

Share this post


Link to post
Share on other sites

I don't understand you. What do you mean when you say AutoIt should choose file or destination? Please be more specific.


When the words fail... music speaks

Share this post


Link to post
Share on other sites

Please be more specific.

Step 1. Tool T opens browser and goes to the site S.

Step 2. T clicks button, this causes File upload dialog to appear.

Step 3. Autoit chooses file in that dialog.

I need step 3.

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

Ok, I understood now, but is important how look this upload dialog. Maybe you can focus and then send path.

Edited by Andreik

When the words fail... music speaks

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

I am already able do upload. What about download ?

Suppose we have already opened "file download window".

Here is my code:

$title="Saving"

WinWait($title)

WinActivate($title)

ControlClick($title,"","[CLASS:Button; INSTANCE=2]")

Window activates but then nothing happens.

Edited by boraldo

Share this post


Link to post
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
Sign in to follow this  
Followers 0