Difference between revisions of "PromptInputDialog"

From Moving Light Assistant
Jump to: navigation, search
 
Line 5: Line 5:
 
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.
 
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.
+
The dialog can be used to ask for user input, such as a name or number.
  
 
''Example.''
 
''Example.''

Latest revision as of 13:53, 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 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.