Difference between revisions of "PromptInputDialog"
From Moving Light Assistant
(Added Page.) |
(No difference)
|
Revision as of 13:50, 12 July 2014
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 asked 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 to enter you 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.