Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

Macros (macro recorder)

&pagelevel(3)&pagelevel

To automate recurring sequences of functions (e.g. starting host applications with particular options and other recurring actions) in the host application, you can record user inputs, edit them using a simple programming language (queries, loops), save them, and retrieve them when required.

This saved sequence of functions in its entirety is referred to as a macro.

Recording a macro

  1. Open Utilities > Record Macro > Start from the menu.

  2. Do the work you wish to do in the emulation. All entries are recorded in the background and then written to a macro.

    During recording, the active window is given the session title:

    <session title>: macro recording

  3. To exit the recording, select Utilities > Record Macro > Stop.

  4. Give the macro a name or discard the recording.

    The macro is saved with the file extension .MAC.

    If necessary, you can edit the macros later using an editor, e.g. Notepad++.

Running a recorded macro

  1. Open Utilities > Start Macro from the menu.

  2. Select the macro you want from the files displayed (extension .MAC).

    While the macro is being run, the active window is given the session title:

    <session title>: macro playing

If menu operations are performed while running a macro, the subsequent screen output is suppressed by the operating system. (The program itself is unaffected and continues running in the background.)

The screen output only recommences when the menu is exited. This can result in premature termination of running the macro. If running the macro is aborted, the message "Macro playing" in the title bar is deleted early.


After a macro is created, it is possible to add the macro to a session by selecting the macro file on the Advanced Configuration section of Edit dialogue. So each time session is opening, corresponding macro is executed.