Samples

You can create a new macro by copying a macro script from this document. This section assumes that you are copying an entire macro script, starting from the beginning designator <HAScript> and ending with the </HAScript> ending designator. To create a new macro in this way, perform the following steps:
  1. In HCL ZIETrans Toolkit, select your HCL ZIETrans project and open the host terminal.
  2. Record a simple macro to use as a holder for the script:
    1. Click the Record Macro icon. The Record Macro wizard opens.
    2. Click Finish to accept the default values. The Define Screen Recognition Criteria wizard opens.
    3. Click Finish to accept the default values. The title bar on the host terminal window should display Recording....
    4. Click the Stop Macro icon. The Define Screen Recognition Criteria wizard opens.
    5. Click Finish to accept the default values.
    6. Click the Save Macro icon.
  3. Edit the macro that you just recorded.
    1. Double-click the name of the macro that you just recorded in the Macros folder in the HCL ZIETrans Project View.
    2. Click the Source tab at the bottom of the editor to open the source view.
    3. In the source view, delete the lines beginning with <HAScript> and ending with </HAScript>.
    4. Copy the entire text of a macro script from this document to the system clipboard.
    5. Paste the macro script into the source view.
    6. Click File > Save (or press Ctrl+S) to save the macro script.

You can edit the macro further using any of the HCL ZIETrans macro editors.

Note: Not all samples in this book are complete macro scripts. A complete macro script starts and ends with the element <HAScript> and does not contain ellipses (ellipses indicate missing information in the samples). Other samples are macro code snippets and need to be pasted into the appropriate location inside an existing, complete macro.