Recall Dialog input for later use?

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
BlackCat
Newbie
Posts: 13
Joined: Mon Dec 20, 2010 12:32 am

Recall Dialog input for later use?

Post by BlackCat » Mon Dec 20, 2010 2:32 am

I am trying to create a macro that will create a new folder within an existing directory and then later use the path to save files within the nearly created folder.
I am using a dialog box to ask for user input. The user types the name for the new folder and then from a drop down menu below the user selects the directory path.

Here is my code for creating the new directory via dialog box:

Code: Select all

Show>Dialog1,modalResult

If>modalResult=1
    GetDialogProperty>Dialog1,MovieFolderName,Text,varMovieFolderName
    GetDialogProperty>Dialog1,GenreDropDown,Text,varGenreDropDown
    
    ChangeDirectory>varGenreDropDown
    CreateDir>varMovieFolderName
So within this "If" statement I am running a program where I need to enter the path created above. Once I get to the field to enter the path I have tried the following:

Code: Select all

Send>varGenreDropDown\varMovieFolderName
The text just shows up varGenreDropDown\varMovieFolderName instead of what the user enters in the dialog box, like when I created the new directory.

I have also tried:
Let>varMovieFolderName=x
Let>varGenreDropDown=y

Then
Send>y\x
This just shows the same as before.

I have also tried a second GetDialogProperty in various areas but that doesn't work either.

Any help given would be appreciated.

User avatar
JRL
Automation Wizard
Posts: 3518
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Post by JRL » Mon Dec 20, 2010 2:41 am

See THIS article

Then try:

Code: Select all

Send>%varGenreDropDown%\%varMovieFolderName%

BlackCat
Newbie
Posts: 13
Joined: Mon Dec 20, 2010 12:32 am

Post by BlackCat » Mon Dec 20, 2010 2:43 am

JRL wrote:See THIS article

Then try:

Code: Select all

Send>%varGenreDropDown%\%varMovieFolderName%
Thanks, I guess I missed that article somehow when I was looking through the blog.

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts