CHECK

Top  Previous  Next

S

A

W

WS

ü

ü

The following commands have been implemented in EMUEScript exactly as they are implemented in OLIE™:

 

Syntax -

Check s <Text> <Row> <Column>

Check s <Text> *

       Where:

       <Text> is a literal string or a variable that contains a literal string.

       <Row> is a integer or a variable that contains a integer.

       <Column> is a integer or a variable that contains a integer.

 

Description:

This command is used to look for particular text define by <Text> on the terminal screen.  If a row and a column are specified, then EMUE will search for the text starting at the position defined by <Row> and <Column>.  If the asterisk (*) is supplied, the entire screen will be searched for the given text.  If the text is found, script execution continues.  If the text is not found, then script execution is immediately halted.  This command is used more commonly within an If statement so that the user can define the intended behavior if the text is showing on the screen or if it is not.

 

Sample 1:

       The following statement uses the Check command to look for an error from the system in position 24, 2.

Check s "E4014:" 24 2

 

Sample 2:

       The following statement uses the Check command to determine the current screen and proceed accordingly.

If Check s "PA4XUNIT" 24 2 Then

       Paste Plan 16 56

       Paste Unit 16 62

       Paste Description 17 25

ElseIf Check s "PA4XSCR" 24 2 Then

       Paste Plan 14 19

       Paste Description 14 51

Else

       LogLine "Unable to find selection screen"

       GoTo Abort

EndIf

Send s ""

 

Sample 3:

       The following command searches the entire screen for the text "SIGNOFF IS COMPLETE" in order to detect that the user has signed off successfully.

If Check s "SIGNOFF IS COMPLETE" * GoTo Finish