Macro Script File Structure
|Top Previous Next|
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).