Hi.
I have a password input text box and would like it to replace all the characters as typed with asterisks.
My question is: how does AGS process key presses, how can I stop it, and how can I simulate it?
i.e. How do I make it ignore a key that has been pressed, and register a different key that hasn't?
I have tried doing a straight swap with
Code: ags
but the text box just displays what was typed.
I also tried maybe swapping the chars after the fact with
Code: ags
but that does absolutely nothing. The text still displays as normal.
I have no idea what else I can try. Any ideas?
Thanks in advance.
I have a password input text box and would like it to replace all the characters as typed with asterisks.
My question is: how does AGS process key presses, how can I stop it, and how can I simulate it?
i.e. How do I make it ignore a key that has been pressed, and register a different key that hasn't?
I have tried doing a straight swap with
if (keycode>='A' && keycode<='Z') keycode=42;
but the text box just displays what was typed.
I also tried maybe swapping the chars after the fact with
tempstring.AppendChar(42); txtPassword.Text=tempstring;
but that does absolutely nothing. The text still displays as normal.
I have no idea what else I can try. Any ideas?
Thanks in advance.