This is my code at present:
Code: Select all
SetFocus>SADiE6 Radio Producer - Phrase Detect Test Delete Me.edl
Wait>1
//Ask what prefix to start with
Input>PrefixNum, What file number do you want to start with?:,1
Input>PageNum, What page number do you want to start with?:,1
Label>Start
Let>strResponse=
//Ask how many times to run
Input>NumTimes, How Many Clips Are You Renaming?:,100
Let>Loop=0
Repeat>Loop
Let>WW_TIMEOUT=30
//Switch to SADiE and rename 1st heading
Press ALTGR
Press Enter
Release ALTGR
Wait>0.5
Press Home
Press Right * 4
Wait>0.5
Press Shift
Press End
Release Shift
Press CTRL
Send>c
Release CTRL
Press Home
Wait>0.5
Press Shift
Press End
Release Shift
VBSTART
VBEND
//prefix it with zeros to 3 chars long
Let>PrefixNum=PrefixNum
VBEval>Right("000" & "%PrefixNum%",3),PrefixNum
Send>%PrefixNum%_
Press Ctrl
Send>v
Release Ctrl
Send>_Page_
//prefix it with zeros to 3 chars long
Let>PageNum=PageNum
VBEval>Right("000" & "%PageNum%",3),PageNum
Send>%PageNum%
Press Enter
Wait>0.5
Press Down
Let>PrefixNum=PrefixNum+1
Let>PageNum=PageNum+1
Let>Loop=Loop+1
Until>Loop=NumTimes
001_Chapter_1
001_Chapter_1
001_Chapter_1
002_Chapter_2
002_Chapter_2
002_Chapter_2
To:
001_Chapter_1_Page_001
002_Chapter_1_Page_002
003_Chapter_1_Page_003
004_Chapter_2_Page_004
005_Chapter_2_Page_005
006_Chapter_2_Page_006
What I would like to do is amend the code so that if the chapter name has been used once it doesn't paste it into the next file. In other words the files would be named as:
001_Chapter_1_Page_001
002_Page_002
003_Page_003
004_Chapter_2_Page_004
005_Page_005
006_Page_006
Is there a way I can capture the text it copies as a variable and then compare it against the text it copies on the next loop, or is there a better way of achieving that? Incidentally the files won't always be named as chapters nor will they always only be chapters, they could be a wide range of different names.