Timing issues when scripting Reflection

When working with the API, there are situations where timing and synchronization can become an issue between your script and the Reflection terminal session applet. For example:

  • You want to perform a task automatically after a Reflection session starts, perhaps to open a dialog box for the user. In this case, you need to make sure that the Reflection session is initialized before you open the dialog box. See Determining if Reflection Is Initialized for more information.

  • You want to get information from a Reflection session dialog box before proceeding with your script. See Synchronizing Dialog Box Input for more information.

  • You want to automate a host logon procedure by transmitting a user name and password after the appropriate host prompts have been received. In this case, you need to wait for the appropriate host prompts before transmitting the responses. See Waiting for Strings and Transmitting Data for more information.