Macro Script File Structure |
Top Previous Next |
The Macro script file has a JavaScript function that allows the interaction with the emulation screen. The script is structured in the three main sections:
1. Obtain the Display object:
The command getDisplay() will return an object display, the resource that will allow interaction with the emulation screen.
2. Define the macro steps:
In this section there should be a function for each step to be executed by the macro. A step generally ends with an AID key command sent to the host.
3. Set the order for the steps to be executed:
At last, it is necessary to set the sequence in which all the steps will be executed. The display.addNavigationPath command should be used to complete this section.
Macro script example
You can also see more examples, by creating macros from the z/Scope Anywhere interface and then opening the generated script files to see how they were written by the application (here you can find out where they are going to be placed by z/Scope Anywhere).
Related Topics
|