- Windows
How do you make it in App Lab such that there is a password filler when you type, that replaces whatever they type with *'s?
How do you make it in App Lab such that there is a password filler when you type, that replaces whatever they type with *'s?
ask Varrience
ASmartCoder lol idk
I have like zero idea on how applab works but I'm just going to give you what I know on gamelab and hope it's possible on applab as well
Mayhaps get the length of the password, and use that to instead say how many asterisks there need to be
shrug
Hmm... something to look into perhaps... i know what your looking for in particular and i may not have the best way of achieving it either but here https://studio.code.org/projects/applab/33lBFhWhVj6RRf19ZUvqkC0dDLK3Ho-yPoi-Ce9E5t0/view
I just realized i could make my own text box... because in applab textboxes i can't control the fricken carret but that would most likely take much much more time and be waaay more limited than the textbox that applab provides you out of the box
i dont even understand a single thing in the code but okay thanks
o wise Varrience how does one become that smart?
person I mean in the end it's not really all that complicated... documentation does wonders if you play around with stuff to see how it works.... the only thing that's super complex about it is storing the actual password before converting all the characters to "\u2022" by separating whether it's being added to or removed is predetermined by event in the input sector which contains useful listener info such as the input starting position and ending position each time it's updated we get the start of the string which is useful... with it's one drawback of not being able to control the caret position when setText is invoked... which is why if you want a textbox with all the functionality you'll have to build one on your own from scratch
ASmartCoder if you don't understand then why not try to reverse engineer it? personally i don't mind if people want a copy of my stuff especially if they want to learn the thinking process behind it, though if you do intend to make anything with what I've done (and publish it) a little shoutout in the comments would be nice... if your really confused with anything i can try to clarify though I've been told my explanations sometimes aren't very clear but I'll try my best!
thanks for helping, I went ahead and pasted it and it works!
Varrience I have no idea on how i could do this but maybe a way to fix your caret issue is comparing a version of the string when it's hidden to the one in store
. Take the differences and adjust the string to match your hidden version. Just an idea but no idea if it will work or not.
Blockyheadman see... that's not the problem here let me make it more clear...
when the user decides they want to add a new character the setText box has to be updated forcing the caret to be at the end that i have no control over it's position whenever setText is invoked... this happens the same way if i used regular text as well, even if it has 1 new character added to the box it will automatically jump to the end where i can't set it back to it's original position that is my current issue