pressAndWait

Top  Previous  Next

In a real terminal, the typed data is sent to the mainframe upon pressing one of the keys known as Attention Identifier keys (AID). These keys act as function keys that are sent along with the typed data. In z/Scope Anywhere you can use the PressAndWait method to simulate this action.

 

The pressAndWait method sends an Attention Identifier Key along with the modified fields, but it blocks the code execution waiting until the system gets unlocked. Modified fields can be input fields (unprotected) or sometimes protected fields having the property Modified set to True.

 

 

JavaScript code

 

 

display.pressAndWait(aidKey);

 

Parameters

 

aidKey : String

         

Read more:

Macro Script File Structure
Programming Reference for Macros - cursorPos
Programming Reference for Macros - type
Programming Reference for Macros - typeV
Programming Reference for Macros - setField
Programming Reference for Macros - setFieldV
Programming Reference for Macros - waitForField
Programming Reference for Macros - waitForNewScreen
Programming Reference for Macros - addNavigationPath