FEEDBACK
...go ahead and read the manual, we won't tell anyone.

answer

The answer command displays a dialog box containing the result of an expression. While its not yet implemented, you can also display a question and up to three response buttons, each representing a different possible reply. Additionally, and once again not yet implemented, you can use answer file to prompt the user for a file from their computer, optionally providing an extra parameter "of type" to filter their choices to a certain file type.



Screenshot:



Examples:

on mouseUp
    answer "This is some information"
    --Not Implemented: answer "Are you sure?" with "Not At All" or "Totally Sure"
    --Not Implemented: answer file "Pick a text file:" of type "txt"
end mouseUp

Usage:


on mouseUp
    answer {expression}
    --Not Implemented: answer {expression} [with {expression} [or {expression2}]]
    --Not Implemented: answer file ["promptText"] [of type "filetype"]
end mouseUp

Notes:

The text of the button that the user clicks gets put into the local variable It. If you don't provide any expressions for the choices of the dialog box, then one button with the text "Ok" is shown. Additionally "Ok" would get put into the "It" variable in this case.


Related Commands:

ask



Tips and Advice:

The answer command is a really easy way to debug or get info about your stack while you're creating it. If you're ever stuck when trying to get some Speak script to work correctly, try outputting a few of your values and variables using answer commands in various places around your code. They'll give you a heads up on what's really going on behind the scenes.



Go ahead and login/signup to leave a comment!

Latest Blog PostsView All >

Video Demos Of Some Great New Features!

posted on November 09, 2009 by Jake Marsh

With all the hustle and bustle of developing and releasing these latest awesome features, it totally...

TileStack.com Release Delicass v0.8 Has Landed!

posted on November 04, 2009 by Ted

After two months of good development, I'm pleased to announce TileStack version 0.8 "Delicass"...

Made by the genuine people personalities of    Copyright © 2008-2009 - All Rights Reserved