InputBoxSecret$

User dialog function.

The InputBoxSecret$ function displays a dialog box for accepting a hidden user input (for typing a password for instance). Not available in WinTask Lite.

Usage

Mainly used for requesting user passwords.

Syntax

var$=InputBoxSecret$(<Prompt> [, [<Title>][, [<Default_answer>][, [<X>], [<Y>]]]])

Parameters

<Prompt>, string, prompt in the dialog box above the edit box where the user can enter input. At execution, the script is paused, waiting the user to click a button. When the user types in the Edit field, the content is hiddent with stars.

<Title>, optional string, title of the dialog box.

<Default_answer>, optional default answer inserted into the edit box.

<X>,<Y>, optional integers, coordinates of the top-left point of the Inputbox.

Return value

If the button OK is selected, var$ contains whatever was entered in the edit box. If the button Cancel is selected, var$ contains "ID_CANCEL".

Examples

 

Var$ = InputBoxSecret$("Type your password: ","Title :", "Today")

Var$ = InputBoxSecret$( prompt$, title$, default$, var_x, var_y)

Var$ = InputBoxSecret$( prompt$)

Var$ = InputBoxSecret$( prompt$, , , 100, 100)