Skip to content
Release: Australia · Updated: 2026-03-12 · Official documentation · View source

Rocket BlueZone emulator methods

Use the Rocket BlueZone emulator methods to perform various automation tasks on the Rocket BlueZone emulator.

Screen-level methods

Use screen-level methods to perform the automation tasks on the emulator screen. For example, you can use simulate a command on the screen or get text from the screen.

GetFieldText

Returns the text that a field contains after it identifies the field by the row and column number that you specify. The row and column that you specify are the starting point of the field. The method identifies the whole field and then returns the text in the field. In the following example, H is the first letter and the starting point in the field and Host OS : is the complete text in the field.

Image omitted: terminal-connector-getfieldtext.png
Screen that shows the first letter in the field and the complete text in the field.
Image omitted: terminal-conn-getfieldtext.png
The GetFieldText method with its parameters.
ParameterDescriptionData port entry typeData typeDefault valueMandatoryNotes
RowField row number that identifies the field.Data InIntegerNAYes 
ColumnField column number that identifies the field.Data InIntegerNAYes 
ReturnReturns the text in the field.Data OutStringNANA 

GetTextFromRect

Returns the text in all the fields of a rectangular area that you define on the screen. You define an area by providing the starting and ending rows and column numbers. The method locates and identifies the first and the last fields and returns all the text in all the fields within that area. The following example shows the area that you defined.

Image omitted: gettextfromrectmethod.png
Area that you defined to show the first cell of the first field and the last cell of the last field.
Image omitted: terminal-conn-gettextfromrect.png
GetTextFromRect method image.
ParameterDescriptionData port entry typeData typeDefault valueMandatoryNotes
StartRowRow number that indicates the first character of the first field in the rectangular area.Data InIntegerNAYes 
StartColColumn number that contains the first character of the first field in the rectangular area.Data InIntegerNAYes 
EndRowRow number that contains the last character of the last field in the rectangular area.Data InIntegerNAYes 
EndColColumn number that contains the last character of the last field in the rectangular area.Data InIntegerNAYes 
ReturnReturns the text from all the fields within the rectangular area.Data OutStringNANA 

IsCreated

Verifies whether the emulator screen exists based on the screen match rule and can accept inputs from the user. After verification, the method returns the appropriate Boolean value.

Image omitted: terminal-conn-iscreated.png
IsCreated method.
ParameterDescriptionData port entry typeData typeDefault valueMandatoryNotes
MatchAllChildrenOption to find the emulator screen by matching the child elements that you have captured.Data InBooleanFalseYesWarning: Using this option may slow down the method.
ReturnReturns the Boolean value depending on whether emulator screen exists based on the screen match rule and can accept inputs from the user.Data OutBooleanNANA 

SearchText

Returns the numbers of the row and column that holds the first character of the text that you specify. For example, if you specify the string emulator, the method returns the row and column numbers of the starting point of the word emulator which is e.

Note: If you provide the text that spans multiple fields, the Row and Col ports return 0 because the method supports the text only from a single field.

Image omitted: terminal-conn-search-text.png
SearchText method.
ParameterDescriptionData port entry typeData typeDefault valueMandatoryNotes
TextText that the method searches.Data InStringNAYesThe text you specify may be case-sensitive depending on the emulator you use.
RowRow number that has the first character of the text you specify.Data OutIntegerNANAIf the text that you specify occurs at multiple rows and columns, the method returns the first row and column that contains the text.
ColColumn number that has the first character of the text that you specify.Data OutIntegerNANAIf the text that you specify occurs at multiple rows and columns, the method returns the first row and column that contains the text.

SendKeys

Simulates the keystrokes that you enter from the keyboard at the mouse device position on the emulator screen. For example, you can simulate the <enter> keystroke on the screen.

Image omitted: terminal-conn-sendkeys.png
SendKeys method.
ParameterDescriptionData port entry typeData typeDefault valueMandatoryNotes
KeysKeystrokes that you enter from your keyboard.Data InStringNoneYesTip: To learn about the keystrokes, refer the respective terminal emulator documentation.

SendKeysSecure

Simulates the keystrokes that is a secured string at the mouse device position on the emulator screen.

Image omitted: terminal-conn-sendkeyssecure.png
SendKeysSecure method.
ParameterDescriptionData port entry typeData typeDefault valueMandatoryNotes
KeysKeystrokes that you enter as a secured string.Data InSecured StringNoneYesTip: To learn about the keystrokes, refer to the respective terminal emulator documentation.

SetCursorPosition

Attempts to set the mouse device at the row and column number that you specify.

Image omitted: setcursorposition-method.png
SetCursorPosition method.
ParameterDescriptionData port entry typeData typeDefault valueMandatoryNotes
RowOption to provide the number of the row based on which the method attempts to set the mouse device on the screen.Data InIntegerNANAThe row number must be positive and within the size of the emulator screen. For example, if the screen size is 24X80, the maximum value that you can provide for a row is 24.
ColOption to provide the number of the row based on which the method attempts to set the mouse device on the screen.Data InIntegerNANAThe column number must be positive and within the size of the emulator screen. For example, if the screen size is 24X80, the maximum value that you can provide for a column is 80.

WaitForCreate

Waits for the duration that you specify while the connector uses the screen match rule to find whether the screen exists.

Image omitted: waitforcreate-method.png
WaitForCreate method.
ParameterDescriptionData port entry typeData typeDefault valueMandatoryNotes
timeoutinSecondsOption to provide the number of seconds for which the method waits while the connector uses the screen match rule to find if the screen exists.Data InInteger30Yes 
MatchAllChildrenOption to match all screen elements that you had captured to find if the screen exists.Data InBooleanFalseYesWarning: Using this option may delay the execution of the method.
ReturnReturns the Boolean value based on whether the emulator screen was found.Data OutBooleanNANA 

Element-level methods

Element-level methods perform automation tasks on the emulator screen elements that you add from the Terminal Connector screen. You can add a screen element as a field or a table.

GetAsTable

Returns the text that you captured as a data table object. Use this method when you capture the data from a screen as a table. However, you can also use the method for the data that you capture as a field. To learn how to capture the data as a table, see Configure the IBM Personal Communications emulator.

Image omitted: GetAsTable-element-method.png
GetAsTable method.
ParameterDescriptionData port entry typeData typeDefault valueMandatoryNotes
ReturnReturns the captured text from the terminal screen as a data table object.Data OutData TableNANATo view the table, right-click the parameter and select Preview Data.

GetText

Returns the text in the field that you captured from the emulator screen. If you use this method for a table that you captured, it returns the text in the first field of the rectangle.

Image omitted: gettext-element-method.png
GetText method.
ParameterDescriptionData port entry typeData typeDefault valueMandatory?Notes
ReturnReturns the text from the captured field.Data OutStringNANA 

IsCreated

Matches the rules and verifies whether the captured element exists.

Image omitted: iscreated-element-method.png
IsCreated method.
ParameterDescriptionData port entry typeData typeDefault valueMandatoryNotes
ReturnReturns the Boolean value based on whether the element is active.Data OutBooleanNANA 

SetText

Attempts to set the text to the field.

Image omitted: settext-element-method.png
SetText method.
ParameterDescriptionData port entry typeData typeDefault valueMandatoryNotes
TextOption to specify the text that the method attempts to set in the field.Data InStringNAYesYou can't use this method on protected emulator screens.

WaitForCreate

Waits for the duration that you specify while the connector uses the match rule to find whether the element exists.

Image omitted: waitforcreate-element-method.png
WaitForCreate method.
ParameterDescriptionData port entry typeData typeDefault valueMandatoryNotes
timeoutinSecondsOption to provide the number of seconds for which the method waits while the connector uses the match rule to find whether the element exists.Data InInteger30Yes 
ReturnReturns the Boolean value depending on whether the element was found.Data OutBooleanNANA 

Parent Topic:Terminal connector methods