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

[Lua]I don't know even if I am coding this right

Started by NotAmaster, 10 April 2013 - 04:08 PM
NotAmaster #1
Posted 10 April 2013 - 06:08 PM
As the title says, I really don't know even if this is the right method to make a button password program, but I tried anyways, so can someone help me out and fix it so it will work? I would really appreciate it.
pastebin link
BigSHinyToys #2
Posted 10 April 2013 - 08:40 PM
The problem is handling of events run this program and click on the screen a few times

while true do
   local event = {os.pullEvent()}
   for i = 1,#event do
        write(tostring(event[i]).." ")
   end
   print("")
end
it will show you the values returned by os.pullEvent()