Page 1 of 1

How to set the initial value of password in ask password?

Posted: Thu Jan 12, 2012 11:26 am
by epub
Hello,

I would like to know if there is a command to set the initial value of password in ask password command?

like -- set password to "mypassword" ? but this one is not correct.
ask password clear "Please type your password:" titled "Edit password"

Thanks in advance.

Re: How to set the initial value of password in ask password

Posted: Thu Jan 12, 2012 3:54 pm
by sturgis
This will do what you want.

Code: Select all

ask password "Enter the password" with "whateverinitialvalue"  
Also be aware that the value will be encrypted. If you just need a cleartext value use the keyword clear, otherwise see the example in the comments at the bottom of the dictionary entry for more info.
epub wrote:Hello,

I would like to know if there is a command to set the initial value of password in ask password command?

like -- set password to "mypassword" ? but this one is not correct.
ask password clear "Please type your password:" titled "Edit password"

Thanks in advance.