Search found 13 matches
- Sat Jan 22, 2011 8:17 pm
- Forum: Beginners
- Topic: GetFileList not reporting as expected
- Replies: 4
- Views: 6441
Scope is global by default. This can be changed by setting LOCALVARS to 1: Let>LOCALVARS=1 GoSub>A GoSub>B SRT>A Let>GFL_TYPE=1 GetFileList>%USERDOCUMENTS_DIR%,res END>A SRT>B GetFileList>%USERDOCUMENTS_DIR%\*.*,res1 END>B In this example the second GetFileList reverts to files because GFL_TYPE set...
- Sat Jan 22, 2011 7:42 pm
- Forum: Beginners
- Topic: GetFileList not reporting as expected
- Replies: 4
- Views: 6441
In your first subroutine you have: Let>GFL_TYPE=1 This has global effect. I suspect in your second subroutine you want to do: Let>GFL_TYPE=0 Thanks, that was it. I didn't even think about that command globally affecting things after I executed it. I was thinking it would reset at the end of the sub...
- Sat Jan 22, 2011 1:40 am
- Forum: Beginners
- Topic: GetFileList not reporting as expected
- Replies: 4
- Views: 6441
GetFileList not reporting as expected
I'm trying to use GetFileList to check if any files are contained within a folder. This test code works when run as its own script: GoSub>VerifyFilesPresent1 SRT>VerifyFilesPresent1 GetFileList>D:\BlackCats_Documents\My_Videos\DVD\Adventure\MovieFolder1\VIDEO_TS\*,files MessageModal>files Separate>f...
- Fri Jan 21, 2011 6:16 am
- Forum: Beginners
- Topic: RegEx-got it to work but don't understand a few things
- Replies: 2
- Views: 3967
- Thu Jan 20, 2011 3:56 am
- Forum: Beginners
- Topic: RegEx-got it to work but don't understand a few things
- Replies: 2
- Views: 3967
RegEx-got it to work but don't understand a few things
I figured out the code I needed, but I don't understand part of the RegEx line. I found this blog post http://www.mjtnet.com/blog/2009/04/30/regular-expressions-for-dummies/ that pointed to RegExr which I used to figure out my pattern. This was much easier for me to understand than the reference pos...
- Fri Jan 14, 2011 3:46 pm
- Forum: Beginners
- Topic: If statement problems
- Replies: 5
- Views: 8003
- Fri Jan 14, 2011 12:05 am
- Forum: Beginners
- Topic: If statement problems
- Replies: 5
- Views: 8003
SRT>DoVerifyAndClose_Resolution GetDialogProperty>Dialog1,DDB_Resolution,Text,varResolution_Check If>{(%varResolution_Check%="480x270")OR(%varResolution_Check%="426x320")OR(%varResolution_Check%="640x360")OR(%varResolution_Check%="640x480")OR(%varResolution_Check%="800x450")OR(%varResolution_Check%...
- Thu Jan 13, 2011 2:25 am
- Forum: Beginners
- Topic: If statement problems
- Replies: 5
- Views: 8003
If statement problems
I want to check that I have selected a resolution in my dialog before I close it. The resolutions in the drop down box change based on a check box selection. The resolutions are listed in the code below. The Else to those resolutions is either "Select Resolution" or "Must Select a Device from Above"...
- Fri Dec 31, 2010 7:23 pm
- Forum: Beginners
- Topic: Recalling window incorrectly
- Replies: 2
- Views: 4213
Ok I figured out part of my problem. Once the screen is minimized, the title in the task bar changes based on the percent of the operation completed. So sometimes this will end on 99% CloneDVD2 or 100% CloneDVD2 so I used the following: IfWindowOpen>100% CloneDVD2,Close_100%,Close_99% Label>Close_1...
- Fri Dec 24, 2010 5:20 pm
- Forum: Beginners
- Topic: Recalling window incorrectly
- Replies: 2
- Views: 4213
Ok I figured out part of my problem. Once the screen is minimized, the title in the task bar changes based on the percent of the operation completed. So sometimes this will end on 99% CloneDVD2 or 100% CloneDVD2 so I used the following: IfWindowOpen>100% CloneDVD2,Close_100%,Close_99% Label>Close_10...
- Wed Dec 22, 2010 8:00 pm
- Forum: Beginners
- Topic: Recalling window incorrectly
- Replies: 2
- Views: 4213
Recalling window incorrectly
This maybe one of those weird ways an application interacts with Macro Scheduler, but I wanted to see if I'm doing something wrong. I am starting a program, entering my data and then minimizing it so that I can do other things while it runs. Once the program is done running a child window will pop u...
- Mon Dec 20, 2010 2:43 am
- Forum: Beginners
- Topic: Recall Dialog input for later use?
- Replies: 2
- Views: 3973
- Mon Dec 20, 2010 2:32 am
- Forum: Beginners
- Topic: Recall Dialog input for later use?
- Replies: 2
- Views: 3973
Recall Dialog input for later use?
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...