This part of my script is navigating a file list within a program and copying the contents of a field and storing it as a variable. As the number of files will vary I've asked it to count the number of WAV files in folder that was previously captured in variable AF1.
Code: Select all
//Count Files in source directory for 1st file CountFiles>AF1\*.wav,WavCount1,0 //Open Marker List Press Alt Send>8 Release Alt Wait>1 MouseMoveRel>430,119 LClick Wait>1 Press Home //Copy Description of all tracks in first file Let>loop=0 Repeat>loop Press Tab *7 Press Ctrl send>c Release Ctrl GetClipBoard>description1_%loop% Wait>0.5 Press Tab Press Down Wait>0.5 Let>loop=loop+1 Until>loop=WavCount1
What should happen is that it copies the content of the field, stores it as variable descrption1_(with a number that increments for each loop), moves down the list to the next file and repeats. After 9 repeats it should stop.
What actually happens is that it appears to copy the content of the field, moves down to the next file and repeats but it never stops so that when it gets to the last file it just keeps copying that last file over and over again.
I don't understand why it's not stopping when it gets to 9