Jump to content
Sign in to follow this  
stompbox

Open and Save dialogs and directory

Recommended Posts

stompbox

Is it possible to set the directory that the open and save dialogs will point to via AutoIt?

For example, I'd like to call:

SetOpenSaveDir("c:\temp")

and when I choose Open... from the File menu, I'd like the open dialog to point to: c:temp

Thanks!!!!

Share this post


Link to post
Share on other sites
Josbe

Well, simply you could add this:

$dir = "C:\temp"
$var = FileOpenDialog("Open", $dir, "All files (*.*)", 1 + 4 )
:idiot:

edit: typos

Edited by josbe

Share this post


Link to post
Share on other sites
layer

like:

FileSaveDialog ( "title", "init dir", "filter" [, options [, "default name"]] )

?


FootbaG

Share this post


Link to post
Share on other sites
layer

you beat me to it... =p


FootbaG

Share this post


Link to post
Share on other sites
stompbox

you beat me to it... =p

<{POST_SNAPBACK}>

Sorry, no, what I want to do is alter the director of the HOST program, not an Open or save Dialog that AutoIt creates.

In other words, I'd like to set the directory of the active frontmost application, then when I choose Open... or Save from the File menu of the active program, have that dialog point to the "right place".

Edited by stompbox

Share this post


Link to post
Share on other sites
layer

i dont know if that's possible... i know it gets annoying when ya gotta click through 8 billion folders to get to the file you want to open or the destination you want to save to...

maybe someone else knows...?


FootbaG

Share this post


Link to post
Share on other sites
killaz219

What about the "init dir" part of it? (initial directory)

Share this post


Link to post
Share on other sites
stompbox

I tried this call, but no go:

FileChangeDir ( "path" )

Apparently it's possible since there are shareware programs that allow you can jump directly to a folder/file.

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  

×