Office Accelerator® Support

Message and Input Box Response Handlers

These commands handle the user responses to a message box or input box. The default handler for a response is to continue with the next command in the script. Handlers must appear before the message box (or input box) is displayed. The parameter for each command must be a LABEL in the Code section in the script. The LABEL can appear before or after the message/input box. When the parameter is blank, it clears the handling to the default, which is to continue with the next command in the script.

Example:

GOTO_ON_CLEAR

GOTO_ON_YES MyYesHandler

GOTO_ON_NO MyNoHandler

MESSAGE_YESNOCANCEL Would you like to play a game?

… (this gets executed on CANCEL)

LABEL MyYesHandler

… (this gets executed on YES)

LABEL MyNoHandler

… (this gets executed on NO)

GOTO_ON_CLEAR

Clears all GOTO_ON_... values.

GOTO_ON_OK labelname

If the user clicks 'OK', continue script execution at the command 'LABEL labelname'.

GOTO_ON_YES labelname

If the user clicks 'Yes', continue script execution at the command 'LABEL labelname'.

GOTO_ON_NO labelname

If the user clicks 'No', continue script execution at the command 'LABEL labelname'.

GOTO_ON_CANCEL labelname

If the user clicks 'Cancel', continue script execution at the command 'LABEL labelname'.