Jump to content
Sign in to follow this  
boraldo

How to work with file chooser.

Recommended Posts

boraldo

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
Andreik

FileOpenDialog(), FileSaveDialog() functions?


When the words fail... music speaks

Share this post


Link to post
Share on other sites
boraldo

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
Andreik

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
boraldo

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
Andreik

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
boraldo

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  

×