Back

Command Message1, Message2, Message3, Message4
Parameters The message to display, the button captions.

The message command displays a message dialog and suspends the script until it is answered.

The Message text:
The message cannot include carriage returns (Don't press Enter). To display a message with new lines, use the HTML code <BR>. If you do not need new lines but need a deeper dialog for a long message, add sufficient <BR> codes to the end of the message. Each <BR> code adds one line to the depth of the message box.

The message must be enclosed in quotes. (If you forget, the editor will add them for you)

Examples....

Message1 "Click continue when the program is loaded"


Message1 "Wait till Excel loads<BR>Select first cell<BR>Click continue"

Message1 "This message is to long for one line but I don't want line breaks. I want the text to word-wrap. I just need to increase the depth of the box so I have added three line break codes.<BR><BR><BR>"


The Message buttons
The default button captions are Continue and Abort Script. You can change them by adding the captions you want in parenthesis after the message text....

Message1 "Follow this clip with a space or a new line?(Space)(New Line)"


Message Variations
There are four variations to the Message command.

Message1
When displayed, the message has the windows focus and there is a beep. The left button causes the script to continue and the right button terminates the script.

Message2
When displayed, the message has the windows focus and there is a beep. The left button sets the Button variable to 1. The right button sets the button variable to 2. You have to handle what happens using If Button =.

Use message 1 or 2 when an immediate response is required.

Message3
When displayed, the windows focus remains with the current application and there is no beep. The left button causes the script to continue and the right button terminates the script. The buttons can be operated with hot keys (Ctrl + F1 for the left button. Ctrl + F2 for the right button)

Message4
When displayed, the windows focus remains with the current application and there is no beep. The left button sets the Button variable to 1. The right button sets the button variable to 2. You have to handle what happens using If Button =. The buttons can be operated with hot keys (Ctrl + F1 for the left button. Ctrl + F2 for the right button)

Use message 3 or 4 when the user has a task to complete before answering.

When using Message2 or Message4 it is possible to write a never ending script. If this happens to you, you can terminate the script by clicking on the small X that shows between the buttons.

If you need to offer more than two choices, use the Menu command instead of Message.

 

Back