
-----------------------------------
lord_pwnerer
Thu Dec 21, 2006 5:14 pm

Turing Password Field?
-----------------------------------
Is there a way to make a textbox display asterics, but still be able to getText of the textbox, and have what they actually typed? (not asterics)

Thanks.

-----------------------------------
uberwalla
Thu Dec 21, 2006 5:23 pm


-----------------------------------
ok do you mean when you type it puts asterixes but when you say put it shows the word?

-----------------------------------
Hackmaster
Thu Dec 21, 2006 5:26 pm


-----------------------------------
easy peasy!!

do a setscreen("noecho")

then, do a loop for getch's. when they hit enter, loop exits. every time through the loop, you want to put an asterisk wherever you want to, be it a textbox, or whatever. ok?

-----------------------------------
uberwalla
Thu Dec 21, 2006 5:38 pm


-----------------------------------
i found a old password thing i had. here ya go:


View.Set ("nocursor")
var password : string (1)
var input := ""
put "Password: "
loop
    locate (1, length ("Password:") + 1)
    put repeat ("*", length (input))
    getch (password)
    exit when c = KEY_ENTER
    input += password
end loop


-----------------------------------
Hackmaster
Thu Dec 21, 2006 5:45 pm


-----------------------------------
not quite what I had in mind... How about something like this?



loop

getch(var)

exit when var = %%Whatever "enter" is

array[num] = var

end loop



bear in mind... it's puesdo code...lol... something like that!

-----------------------------------
lord_pwnerer
Thu Dec 21, 2006 5:45 pm


-----------------------------------
What I want is, when the user types in the text field, it displays asteriks, but when I use the GUI.GetText command, I get what they actually wrote. Is this possible?

-----------------------------------
uberwalla
Thu Dec 21, 2006 5:46 pm


-----------------------------------
im sure it is ill take a look at it cuz im not sure bout gui textbox thing.

-----------------------------------
Clayton
Fri Dec 22, 2006 10:17 am


-----------------------------------
there's an example of just this somewhere in the Turing Examples, look through it and see what you find.

-----------------------------------
lord_pwnerer
Fri Dec 22, 2006 6:22 pm


-----------------------------------
I can't seem to find it. Does this way that your talking about function with textboxes?

-----------------------------------
lord_pwnerer
Fri Dec 22, 2006 6:33 pm


-----------------------------------
Really sorry about this guys, there actually are numerous posts about the exact same subject. 

I did search before I started the new topic. but.... 

Sorry

Thanks for your help guys.
