Infocenter

Adding a prompt to a macro

You can insert a prompt in a macro so that during playback you can type information that varies or that you do not want displayed. When a prompt is reached during playback, a window opens asking for the information, which is then sent to the host application.

For example, if the task is to start a session, which requires a user id and password, you can insert a prompt for the user id and another for the password.

To insert a prompt:

  1. Start recording using the Macro Manager.
  2. When you get to the point at which input is required, click Prompt.
  3. Enter the information required. The default value is optional.
  4. Click OK. You are then asked to type the information required. You must type whatever entry is required to make the host application continue as usual. If you selected Is it a password? on the Add a Prompt window, this information is not displayed during playback so it is safe to type your password.
  5. Click OK when you have finished.

Related topics

  • Recording a Macro
  • Host On-Demand Macro Programming Guide