Infocenter

Adding a Prompt

A prompt is a window that opens to request information from the user during macro playback.

Row and Column
The position in which the information is to be placed during playback. The values displayed show the current location of the cursor but you can change them.

Prompt Name
Enter the text that you want to appear inside the prompt message box asking the user for input. For example, if you are asking for a user ID, the prompt text could be, Enter your user ID. Remember that the text must be enclosed in single quotation marks if the checkbox for Use Variables and Arithmetic Expressions in Macro is checked. For example, 'Enter your user ID'.

Default Value
This is optional. During playback, whatever you type here appears in the prompt window as the default value but you can change it. If your response to the prompt will usually be the same, type it here.

Is it a Password?
Check this if the input required during playback is a password so that when you type your password, it will be displayed as asterisks. When the macro is saved, the password is encrypted so that it cannot be read.

Clear Host Field
Check this if, during playback, you want the macro to clear the area of the screen in which the information is to be placed before it enters the information. This is useful for host applications that put data into the screen automatically. If such fields are not cleared, invalid characters might be added to the information you enter.

Related topics

  • Host On-Demand Macro Programming Guide