Posted 30 August 2012 - 12:59 AM
Hi im a noob to lua but im picking stuff up so i decided to try to make a login gui to open a door nothing fancy but when i run the program you type the password and its under the gui is there a way to get it to type next to the password: field?
this is my code
any help will be appreciated
this is my code
pass = "base"
print (" _____________ ")
print ("| Welcome |")
print ("|_____________|")
print ("| User: Admin |")
write ("| Pass: |")
print ("|_____________|")
input = read ("*")
if input == pass then
rs.setOutput ("left", true)
sleep (5)
os.shutdown ()
else
term.clear ()
term.setCursorPos(1,1)
write ("Access Denied!")
sleep (5)
os.reboot()
end
any help will be appreciated