This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
lolydodo123's profile picture

Input Changer Question

Started by lolydodo123, 08 June 2012 - 12:05 PM
lolydodo123 #1
Posted 08 June 2012 - 02:05 PM
Hello,

Im sorry that the title was misleading maybe, but I think its right.

Now, I made a protected startup-thing and I dont want the password to appear, I want it to change to *'s when I type something in. For example,

Instead of:
Please insert the password.
Password: thIsAPassword

To:
Please insert the password.
Password: ************

I know its possible, but I couldnt figure out how to do it.
Please help, thanks.
Pinkishu #2
Posted 08 June 2012 - 03:13 PM
read("*")
lolydodo123 #3
Posted 08 June 2012 - 03:21 PM
read("*")

Umm.. Didnt work! :)/>/>
MysticT #4
Posted 08 June 2012 - 05:42 PM
Like Pinkishu said, replace any read() calls you have with read("*"), and make sure it's read("*"), not io.read("*") since that doesn't work.