Back

Command ExitLoop
Parameters None

Example....

The example copies each line from a text document into separate Spartan clips and terminates at the first blank line.

[[Script]]
ClearClips
Type Ctrl + End
Type Enter                         ' This ensures a blank line at the end
Type Ctrl + Home              'This sends cursor to start
Loop
   Type Shift + End              'selects one line
   Type Ctrl + c                      ' this copies the line
   Type Home
   Type Down                      ' These move cursor to next line
   Wait 2                               'Allow time for Spartan to capture the clip
   If LastCopy = ""
      ExitLoop                        ' This breaks the loop at the blank line
   EndIf
EndLoop

Note:
The first two lines ensure a blank line at the end of the document. If there were no blank line, the script would copy the last line over and over again.

 

Back