inputbox

Displays a dialog box prompting user to input a string.

inputbox <message> <title> [<default> [<special>]]

Parameters

string <message>
It is displayed in the dialog box.
string <title>
It is displayed as the dialog box title.
string <default> (optional default=''(empty))
The default string on edit control.
integer <special> (optional default=0)
If it is non-zero, following strings in <message> is treated as spacial character.
<special> does not effect to <default>.
input output
\\ "\"
\n line feed
\t tab
This option is obsolete. You are recommended to use the strspecial command.

Return Value

System variable <inputstr>
The string entered by the user is returned.

Example

inputbox 'Password:' 'Login'
sendln inputstr

See also