Jump to content

How to set Default Directory Prior to a Save as... ?


dkarjadi
 Share

Recommended Posts

Greetings all,

My First Post here...

I'm trying to automate QuicktimePlayer.exe to do clip stitching... after struggling a bit learning AutoIt, I got most of it done...

with only 1 thing left to make it complete for me...

I need to be able to "tell" QuicktimePlayer where to save the resulting file to...

I've been able to Set the filename in the Save as... dialog box by using ControlCommand("Save A File","","Edit1","EditPaste",$File1&".mov")

I've also been able to set the "Save as a reference movie" using ControlClick

However I haven't been able to "pre-Set" the dialog to point to a default directory I wanted...

Doing a "FileChangeDir($Savedirectory)" prior to the save as... doesn't change the combo box, when the save as... dialog box comes up....

Any help pointing in the right direction would be greatly appreciated!

Thanks!!

Link to comment
Share on other sites

This is how I do it:

$windowname = "Save As" ; put the title of your window here
$control =    "ControlID" ; enter control ID of the box where the text goes
$initialdirectory = @programsdir/ & "{Enter}" ; your initial path here
$flag = 0             

winwait($windowname)

ControlSend($windowname,"",$control,$initialdirectory,$flag)

Hope this helps

cs

Edited by celestialspring
Link to comment
Share on other sites

THANK YOU!!!!!!!!! :D

This is how I do it:

$windowname = "Save As" ; put the title of your window here
$control =    "ControlID" ; enter control ID of the box where the text goes
$initialdirectory = @programsdir/ & "{Enter}" ; your initial path here
$flag = 0             

winwait($windowname)

ControlSend($windowname,"",$control,$initialdirectory,$flag)

Hope this helps

cs

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...