Use the Record Macro dialog box to record a macro. When you record a macro, you can temporarily pause the recording. For example, if you forget the name of a file to be included in the macro, you can pause the recording, look up the file name, and then resume recording.In addition, you can insert several special macro functions into a macro as you record it.
To record a macro
From a session, choose
from the Tools menu.The Macro dialog box appears on your screen.
Choose the
button.The Record Macro dialog box opens.
In the
field, enter a unique name for your macro.(Optional) In the
, enter a brief description of the macro.Your description provides a quick reference, especially in installations where many different macros have been created.
In the
field, enter the location to which you want to make your macro available.To use your macro with any session that is active, select
.-or-
To use your macro with only the current session, select
.Enter a value for
to indicate the amount of time the macro waits before continuing to record actions. The default is 3 seconds.Choose the
button.The macro recording panel displays.Perform the actions you want to record.
Select the
button to stop recording temporarily. Select the button again to continue recording. To pause the macro and insert a special macro function into the script, press the Insert button.Select the
button to stop recording after the last action.Inserting Special Macro Commands
You can pause a macro recording and insert special macro functions into the script. The following types of special macro functions are included:
Wait functions cause the macro to wait until specified host conditions are met before resuming (specific text appears, host is ready, a specified number of seconds has elapsed, the cursor is positioned at a specified row and column, the cursor moves up, down, left, or right a specified amount). Wait functions are useful in macros that require the host to do time-consuming processing.
Moving cursor position moves the cursor to a new position on the host screen.
Entering text pauses the macro and displays a text prompt. When responded to, the macro resumes.
Options |
Description |
---|---|
|
Enter a unique name for your macro. |
|
(Optional) In the Description field, enter a brief description of the macro. Your description provides a quick reference, especially in installations where many different macros have been created. |
|
Enter the location to which you want to make your macro available. |
|
When selected, your macro is runs each time you start this session. |
|
When selected, your macro runs each time this session reconnects. |
|
When selected, your macro is used with any session that is active. |
|
When selected, your macro is used only with the current session. |
|
Indicates the amount of time the macro waits before continuing to record actions. The default is 3 seconds. |
|
Select to record a start-up macro, which provides automatic logon by replacing the placeholder strings in the macro with the valid user name and password for the user connecting to the host. |
|
The ID of the host application to which the Express Logon Macro should connect. |
|
Choose this button for help on recording macros. |