Script Menu

The commands in this menu can be added to a Script window to automate the execution of these and other ME'scope commands.

Sleep

Causes execution of Steps to pause on the current Step for a user-specified period of time (in seconds).

User Dialog

Opens a dialog box containing a user-specified message, as shown below.

User Dialog.

Question Box

Opens a dialog box containing two user-specified messages, and Yes, No & Cancel buttons.

Parameters

  1. Question text for the Yes button

  2. Go to this Step/Label if Yes is pressed

  3. Additional Message

  4. Go to this Step/Label if No is pressed

  5. Default pressed button

  6. Yes/No pressed Variable (Yes = 1, No = 0)

Variables | Define Global Variables

Opens the Global Variable window, as shown below, where Global variables are defined.

Global Variables Window

File | Save Global Variables

Saves the Global Variables in the ME'scope .VTprj file on disk.

File | Copy Global Variables to Clipboard

Copies the Global Variable spreadsheet to the Clipboard.

File | Print Global Variables Spreadsheet

Prints the Global Variable spreadsheet on the Windows printer.

File | Close

Edit | Select Menu

These commands are used for selecting, inverting selection, and un-selecting Global variables

Closes the Global Variable window.

Edit | Add

Adds a new Global variable to the Global Variable window.

Move selected Global Variables Up/Down

These commands move the selected Global variables Up or Down in the variables spreadsheet.

Edit | Delete

Deletes selected Global variables from the Global Variable window.

Variables | Var_1 = Var_2

Assigns the contents of Variable_2 to Variable_1

Each variable can be a Global variable, a number, or text.

Variables | Var_1 = Var_2 [operator] Var_3

Assigns the result of the operation between Variable_2 and Variable_3 to Variable_1.

Each variable can be either a Global variable, a number, or text.

[operator] can be one of the following operations;

[ + ]  add

Adds Variable_2 to Variable_3 and stores the result in Variable_1.

[ - ] subtract

Subtracts Variable_3 from Variable_2 and stores the result in Variable_1.

[ x ] multiply

Multiplies Variable_2 by Variable_3 and stores the result in Variable_1.

[ / ] divide

Divides Variable_2 by Variable_3 and stores the result in Variable_1.

Variables | If (Var_1 [compare] Var_2) Then GoTo Step/Label

Compares the value of Variable_1 with Variable_2, and Step execution either branches to a Step/Label or continues on the nest Step

Each variable can be either a Global variable, a number, or text.

[compare] can be one of the following comparisons;

[ = ] equal to

If Variable_1 equals Variable_2, Step execution branches to the Step/Label and continues executing Steps

[ <> ] not equal to

If Variable_1 is not equal to Variable_2, Step execution branches to the Step/Label and continues executing Steps

[ < ] less than

If Variable_1 is less than Variable_2, Step execution branches to the Step/Label and continues executing Steps

[ <= ] less than or equal to

If Variable_1 is less than or equal to Variable_2, Step execution branches to the Step/Label and continues executing Steps

[ > ] greater than

If Variable_1 is greater than Variable_2, Step execution branches to the Step/Label and continues executing Steps

[ >= ] greater than or equal to

If Variable_1 is greater than or equal to Variable_2, Step execution branches to the Step/Label and continues executing Steps

Variables | If (Var_1 [compare] Var_2) Then GoTo Step/Label Else GoTo Step/Label

Compares the value of Variable_1 with Variable_2.

Variables | Variable Dialog

Opens a dialog box for user entry of the value for a global variable.

Parameters

  1. Global Variable

  2. Variable value (number or text)

GoTo Step/Label

Step execution branches to the Step/Label and continues executing Steps.

Exit Script

Ends Step execution in this window and,

  1. Returns to the Script window that started Step execution in this window

  2. Or stops all Script window Step execution

Window | Position

Places a window in a specific position in the Work Area.

Parameters

  1. Left side (0 to 1), percentage of the Work Area

  2. Top (0 to 1), percentage of the Work Area

  3. Right side (0 to 1), percentage of the Work Area

  4. Bottom (0 to 1), percentage of the Work Area

  5. The File name of the window to Position

Window | Minimize

Minimizes a window (changes it to an Icon) in the Work Area.

Parameter

  1. File name of the window to minimize.

Window | Restore

Restores a window from its minimized state in the Work Area.

Parameter

  1. File name of the window to restore.

Window | Maximize

Maximizes a window in the Work Area.

Parameter

  1. File name of the window to maximize in the Work Area.

Window | Bring to the Front

Displays a window in front of all other windows in the Work area.

Parameter

  1. File name of the window to bring to the front on all other windows in the Work Area.

Window | Send to the Back

Displays a window in back of all other windows in the Work Area.

Parameter

  1. File name of the window to place behind all other windows in the Work Area.

Window | Close All Other Windows

Closes all open windows in ME'scope except the Target window.

Window | Minimize All Other Windows

Minimizes all open windows in ME'scope except the Target window.