Jump to content
Sign in to follow this  
Blake

Graphical Folder Selector Macro Problem

Recommended Posts

Blake

Ive been making a macro and have stumbled upon this graphical folder selector. This selects the folder that an output file is going to be saved to. I'm going to need to save files in different directories (all of the directories are in 1 folder). How do I automate the folder selection. Is there any way I can send a path to the folder selector? (The path for each instance is assigned to a string)

Share this post


Link to post
Share on other sites
Jos

How do I automate the folder selection. Is there any way I can send a path to the folder selector? (The path for each instance is assigned to a string)

<{POST_SNAPBACK}>

Do you mean the autoit folder selection with:

FileSelectFolder ( "dialog text", "root dir" [, flag] )
Edited by JdeB

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
Blake

woops that wasn't it. this is a folder selector in another program. i need to select a folder assigned to a variable in my macro. How would i do that?

Share this post


Link to post
Share on other sites
Jos

woops that wasn't it. this is a folder selector in another program. i need to select a folder assigned to a variable in my macro. How would i do that?

<{POST_SNAPBACK}>

find out the controlname of the control you want to change in this window. you can use AU3_spy for that.

Then use Control commands to put the value in there...

check the Helpfile for detailed info on controls. :idiot:


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
Blake

I've tried different things that haven't worked and have searched and searched the help file but haven't seen anything on this (maybe ive looked at it and missed it).

I assume that autoit cannot alter the selected folder through the text box displaying the selected folder because it's merely displaying the value of a variable that the folder browser has set. Am i wrong?

The folder browser's "Hidden Window Text" is the path of the folder that's selected. Is there any way i can get autoit to change that value to the desired folder?

Share this post


Link to post
Share on other sites
grakker

If the Browse for Folder Dialogue works anything like windows explorer, it seems that you could use a mix of {UP}'s and {DOWN}'s (or a unique first few letters) and {RIGHTS} to reliably browse to where you want to go. Hard to say without using it....

Ugly, I know, but has worked for me in the past.

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  

×