Is there a way of doing this?
I'm trying to write a Macro that will import files into a program in the correct order.
In the program when you click on the import button it opens a browse window so that you can find the folder containing all the files you want and select the file in question.
This is a Macro that I need to have automatically repeat hundreds of times but as each file can only be imported individually I need some way of the Macro to record that the first time it runs it should select the first file in the folder, the 2nd time it runs to select the 2nd file etc etc.
All the files in the folder will/should already be organised by naming conventions so that they appear in the order that they are needed but the file names will be different so it can't be anything that is file name specific and instead should, I guess, be based on file count.
I'm feel sure that something like this is possible but not being a coder I haven't a clue how!
Anyone know how something like this could be done?
Get next file from Browse Window?
Moderators: JRL, Dorian (MJT support)
This is what I have at the moment:
[/quote]
This works as as a way of selecting the first file in the list but what I'm thinking is that there needs to be something like a subroutine (think that's what it's called) which counts the number of times the macro has run which, I think, it should be able to get from the first 3 lines and to then say to have something like a Let x=+1 to define which number file is selected in the browse window. But that's the limit of my technical knowledge in this regard i.e. I kinda know how it could work, I just don't know how to actually write it//Ask how many times to loop the macro
Input>NumTimes, Enter Numer of Runs:,10
Let>x=0
Repeat>x
//switch to EasePublisher
Wait>2
SetFocus>The Other Side of You 10 pages 2 - EasePublisher - (C:\Documents and Settings\studios\My Documents\EasePublisher\My books\The Other Side of You 10 pages 2\ncc.html)
Wait>2
//open import window
Press>Alt
Send>p
Release>Alt
Wait>0.5
Send>i
Wait>0.5
Send>a
Wait>0.5
//import window opens browse for file
WaitWindowOpen>Import audio
Wait>0.5
Press Enter
Wait>1.5
WaitWindowOpen>Select one or more audio file(s)
//move cursor to list of files and select/highlight first file in list
Press Shift
Send>Tab
Release>Shift
Wait>1.5
Send>Space
Wait>1.5
Press Enter
WaitWindowClosed>Select one or more audio file(s)
Wait>2
SetFocus>Import audio
Wait>1.5
Press Tab *3
Wait>1
Press Enter
//wait for phrase detection to complete
WaitWindowClosed>Import audio
SetFocus>EasePublisher
