Jump to content
Sign in to follow this  

Variables in Inutbox command

Recommended Posts


I have a question and hope that you can help me.

$password = "right"

$pass = InputBox("Password","Enter Password:", & $password,"*M5",1,1)

Maybe this what you see doesnt make any sense to you but how could it be made that the password is shown where it should be....in the box.

Edited by Arterie

Share this post

Link to post
Share on other sites


Perhaps this is what you want?

$password = "right"
$pass = InputBox("Password", "Enter Password:", $password, " M5", 100, 120)
If Not @error Then
    MsgBox(0, '', $pass)

Using a space instead of an asterisk will show the password in the input control.


Edited by MHz

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...