PromptInputDialog

From Moving Light Assistant
Revision as of 14:50, 12 July 2014 by Andyv wiki admin (Talk | contribs) (Added Page.)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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.