Page 1 of 1

Password Mask in a field

Posted: Fri Jul 20, 2018 2:39 pm
by lemodizon
Hello everyone... I’m trying to figure out the process of “password mask” in livecode and there’s a lot of code in the forum and internet I tried one it just display the (*)

on keydown var
set the hiddentext of me to the hiddentext of me & var
put "*" after me
end keydown

or
on textChanged
repeat with x = 1 to the number of chars of me
set the imageSource of char x of me to 12643
end repeat
end textChanged

I’m confuse is there a short codes for this password mask. Can you teach me on how to do the password mask

some say use the "ask password" i already did but i want to try what if i want to use a filed and not the "ask password" coz i want to explore livecode. Hope this forum can help me Thanks in advance

Re: Password Mask in a field

Posted: Fri Jul 20, 2018 3:19 pm
by Klaus
Hi lemodizon,

well, mimicking a password field is not a trivial task, if you want ot make it (more or less) foolproof!
Sorry, there is no easy and short way to do so.

Check this:
In LC, menu "Help", select "Sample stacks" and then enter "password" in the searchfield on the topleft.
Then scroll down a little until you see "Password field" by Devin Asay, see attached screenshot.

Download that little stack and check the behaviour script attached to the field.

Best

Klaus

Re: Password Mask in a field

Posted: Fri Jul 20, 2018 3:40 pm
by lemodizon
Thanks Klaus i'll download it check it out. :)