Prompts the user for a password.
AskPassword ( title, prompt )
(s) title: title of the dialog box.
(s) prompt: question to be put to the user.
(s) user response.
Pops up a special dialog box to ask for a password. An asterisk (*) is echoed for each character that the user types; the actual characters entered are not displayed. The entire user response will be returned if the user presses the OK button or the Enter key. If the user presses the Cancel button or the Esc key, the processing of the WIL program is canceled.
pw = AskPassword("Security check", "Please enter your password") If StriCmp(pw, "Erin") == 0 Run(Environment("COMSPEC"), "") Exit Else Pause("Security breach", "Invalid password entered") EndIf