PromptInputDialog
From Moving Light Assistant
Revision as of 13:53, 12 July 2014 by Andyv wiki admin (Talk | contribs)
PromptInputDialog( text )
- text is a string.
- Returns a string.
This function will pause the script and show a dialog with the message in the text parameter and a field for the user to enter data. Once the message dialog is dismissed, the script will continue.
The dialog can be used to ask for user input, such as a name or number.
Example.
replyVar = PromptInputDialog("Please enter your name")
MessageDialog("Hello "..replyVar)
This would display a dialog asking you to enter your name. When you click the 'OK' button, the name will be saved in the variable replyVar which is then used to display a message dialog.