Technical Note: 20000918003

Workstation Script File

(Maitre'D Millennium)
The purpose of a script file is to record and play a macro that will be run on a Maitre'D workstation in order to do tests.
Script files are split in two parts:
  1. Macro file, which record what was selected on the touch screen
  2. Script file, a text file describing the execution of the macros files
  3. MACRO RECORDING

    To record a new macro, press the F5 key on the workstation. You will be prompted for a filename. The extension .MAC will be automatically appended.
    Once the filename is entered, the recording starts. Any button touched is saved to the file. Once you have finished the sequence you want to record, press F5 again to end the record session.
    At this point, you can press F5 again to record another macro. Note that if you use an already existing filename, the file will be overwrite by the new one.

    MACRO PLAYING

    To play back a macro, it must be included in a script file, which must have a .SCR extension. The structure of these files will be explained later.
    To play back a script file, the MAITRED.SCR script will be executed when you press F4 on the workstation.

    SCRIPT FILE STRUCTURE

    The script file is a normal text file with an .SCR extension. You simply put keyword and the value you want to set them. There are 5 keywords currently supported which are:
    DELAY
    REPEAT
    BEGIN
    END
    EXEC
    DELAY (syntax: delay = n) set the internal delay between buttons.
    The button will be displayed on the screen at a rate of one button every n millisecond. For demo purpose, n should have a value between 250 and 500. For debugging, this value should be 0. Note that value must have a range of 0 to 32767.
    REPEAT (syntax: repeat = n) set the repetition number.
    Every command placed between the next BEGIN and END keyword will be repeated n times.
    BEGIN (syntax: begin) Mark the beginning of the repeat block.
    Used in conjunction with REPEAT and END, this keyword marks the beginning of the block. Note that this keyword takes no parameter.
    END (syntax: end) Mark the end of the repeat block.
    Used in conjunction with BEGIN and END, this keyword marks the end of the block. Note that this keyword takes no parameter.
    EXEC (syntax: exec = filename.mac) Macro to be executed.
    The macro filename will be loaded and executed. Note that the extension is optional.
    Example:
    delay = 0
    repeat = 2
    begin
    exec = test1.mac
    exec = test2.mac
    end
    exec = sfr.mac
    The above example will set the delay to 0, execute test1.mac and test2.mac, execute test1.mac and test2.mac again then execute sfr.mac