Example to demonstrate an AutoControl script with two user-prompted input variables, and an indefinite loop that runs the ASCII program until the ESC key is pressed. 


[Language1]                  ' set language to English

[Device2]                    ' select second Device

[Clear]                      ' clear display

[VarInput1]Tester Name       ' user input dialog-box requesting "Enter: Tester Name"

[SaveResultsAutoESC]         ' save results buffer text to the next available disk file when the ESC key is pressed

[ResetResults]               ' clear buffer

[LoopStart]                  ' Start of Loop

       [VarInput2]ID Number   ' user input dialog-box requesting "Enter: ID Number"

       [ESCExit]              ' check for ESC key press, if ESC pressed, stops the AutoScript and also terminates the Terminal app

       [Show]------------------------------------------

       [ShowVar1]             ' display variable #1 (Tester Name)

       [ShowVar2]             ' display variable #2 (ID Number)

       [Show]------------------------------------------

       [ShowMode4]            ' display only lines that fail for ASCII program script

       [RunProg4]             ' runs ASCII program test04.prg

       [ESCExit]              ' check for ESC key press, if ESC pressed, stops the AutoScript and also terminates the Terminal app

       [Show]------------------------------------------

       [Show]            End test program

       [Show]------------------------------------------

       [StoreResults]         ' copies display contents to buffer

       [Clear]                ' clear display

[LoopEnd]                    ' End of Loop (returns to LoopStart until ESC key is pressed)