User Interaction in SenseTalk Scripting
You can write SenseTalk scripts that prompt for information during runtime. The following commands allow your SenseTalk script to interact with the user by displaying or requesting information.
answer
What it Does
Displays a simple modal panel containing a message and up to three buttons which the user may click. Returns the title of the selected button in the variable it
.
When to Use It
Use the answer command when you need to display short to medium-length messages in a modal panel, or to solicit input from the user in the form of a choice between two or three different alternatives.
The answer command is ideal for situations where the user must make a yes/no or continue/cancel type of decision. For more complex choices, use the ask command.
Example
answer "Great! You got " & pctRight &"% correct!"