Password Mask in a field

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
lemodizon
Posts: 175
Joined: Thu Apr 05, 2018 3:33 pm

Password Mask in a field

Post by lemodizon » Fri Jul 20, 2018 2:39 pm

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
Attachments
Ask Password.png
Ask Password.png (4.18 KiB) Viewed 2239 times
Password_Mask.png
Password_Mask.png (4.96 KiB) Viewed 2239 times
Thank you & God Bless Everyone :wink:

Regards,
lemodizon

Klaus
Posts: 13820
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Password Mask in a field

Post by Klaus » Fri Jul 20, 2018 3:19 pm

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
Attachments
passwordfieldlc.jpg

lemodizon
Posts: 175
Joined: Thu Apr 05, 2018 3:33 pm

Re: Password Mask in a field

Post by lemodizon » Fri Jul 20, 2018 3:40 pm

Thanks Klaus i'll download it check it out. :)
Thank you & God Bless Everyone :wink:

Regards,
lemodizon

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”