Prompt

Create a dialog to prompt the user for a response.

Input Parameters

Name Type Required Description
Prompt String Yes The request for input from the user.
Title String No The title of the dialog.
Wait Number Yes The amount of seconds the prompt will wait for a response.
Note that if this value is zero (0), the prompt will be displayed indefinitely, until a response is provided.
Buttons String Yes The buttons to display on the prompt

Output Parameters

Name Type Description
ClickResult String The value 'OK' or 'Cancel' depending on which button is clicked.
Result Number Returns a success value of zero or any value other than zero to indicate failure.

Example Input Parameters

Name Type Required Example
Prompt String Yes Device Maintenance Required
Title String No Device Maintenance is about to commence on this device, do you wish to allow?
Wait Number Yes 300
Buttons String Yes Yes, No

May need to set the following and reboot the machine: HKLM\System\CurrentControlSet\Control\TerminalServer\AllowRemoteRPC to 1