Back

Command GoTo
Parameters The line label you want to go to.

Before you can use the GoTo command you need to insert a Label (Place holder) in your script. A Label is any text you want with no spaces and ending with a colon.

Example:
[[Script]]
Menu:              '<--- Label
Loop
   '-------------------Z1, Z2 and Z3 are the first three clips in the yellow section
   Menu1 "Open Start Menu;Paste Z1;Paste Z2;Paste Z3"
   If Button = 1
      GoTo OpenStart
   EndIf
   If Button = 2
      GoTo Clip1
   EndIf
   If Button = 3
      GoTo Clip2 'rem
   EndIf
   If Button = 4
      GoTo Clip3
   EndIf
EndLoop
'--------------
OpenStart:             '<--- Label
StartMenu
GoTo menu
'-----------------
Clip1:                    '<--- Label
PasteClip Z1
Type Enter
GoTo menu
'-----------------
Clip2:                   '<--- Label
PasteClip Z2
Type Enter
GoTo menu
'-----------------
Clip3:                    '<--- Label
PasteClip Z3
Type Enter
GoTo menu

Back