Hello,
What you can do is, at the end of macro insert 3 keystrokes command, first keystrokes command to go back to main folder i.e. [Backspace] key, second keystrokes command to move the cursor to next subfolder i.e. [Down Arrow] key and third keystrokes command to open selected subfolder i.e. [Enter] key. The text format of keystrokes command would look like this,
Keystrokes: [BACKSPACE] in "Currently Active Window"
Keystrokes: [DOWN ARROW] in "Currently Active Window"
Keystrokes: [Enter] in "Currently Active Window"
Set this macro to repeat for N times where N is the numbers of subfolders.
When you will run this macro, it will perform image stitching processes for all the files in current subfolder then will go back in main folder to select next subfolder and will open that particular subfolder. This process will repeat as per Repeat property setting.
Alternatively, we suggest trying our advanced automation product, Automation Anywhere 4.0, which provides you with 'Loop For Each folder in a folder' command to perform some actions for all folders in a folder. To access the folder name within the loop use the System Variable, $FolderName$.
You can find this command under Conditions/Loops command category.
Just double click on Loop command, select 'Loop For' option, 'Each folder in a folder' and specify the path for folder. The text format of your task will look something like this,
1) Start Loop " Each Folder in C:\ImagesFolder"
2) Open Folder "$CurrentDirectory$\$FolderName$"
//Comment: Insert actions to perform image stitching processes
3) End Loop
Hope that helps. |