Simulating password entry

J. Landman Gay jacque at
Thu Aug 19 00:56:10 EDT 2004

On 8/18/04 2:25 PM, Devin Asay wrote:

> All,
> I'm writing an app that simulates a network server login on Mac OS X. I 
> want the password field to behave just like normal password fields in OS 
> X; i.e., bullet characters appear in place of clear text. I've sorta 
> kinda got it working by trapping the keydown message in the password 
> field, but it's quirky. Before I spend a lot of time on this, I thought 
> I'd ask: Has anyone done this and would mind sharing a script?

It's built in. If you want an encrypted password back:

  ask password "Enter your password"

If you want clear text back:

  ask password clear "Enter your password"

Both return the user entry in the variable "it".

Jacqueline Landman Gay         |     jacque at
HyperActive Software           |

More information about the Use-livecode mailing list