prompt
Syntax: %prompt(default,message,EchoChar)
Prompt the user for a value using default as the value first displayed in the prompt window. The optional message can be used to specify the question being asked ("Enter a value" is used by default). And EchoChar, if present, indicates the character to echo instead of the characters typed (for example, use "*" to display asterisks when enter a password value).
Examples:
amount = %prompt(500,"How many to sell?")
displays a dialog box with the default value 500, and assigns the number (or string) entered to the variable amount.
#SEND %prompt("","Enter password","#")
prompts for a password string, hides the input while typing, and sends it to the mud without displaying it in the output buffer.
NOTE: Since #SEND can also be used to send the contents of a file to the mud, this example won't work, if the password is identical to a filename in the CMUD directory. |