Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- AdvancedPasswordProgram
- os.pullEvent = os.pullEventRaw
- print ("Please enter password: ")
- local password = io.read()
- lettersTyped = {}
- event, character = os.pullEvent("char")
- event, scancode = os.pullEvent("key")
- position = 1
- repeat
- if character ~= "" then
- table.insert(lettersTyped, position, character)
- print ("*")
- position = position + 1
- until scancode == "28"
- if lettersTyped[1] == "4"
- and lettersTyped[2] == "9"
- and lettersTyped[3] == "e"
- and lettersTyped[4] == "7"
- and lettersTyped[5] == "F"
- and lettersTyped[6] == "r"
- and lettersTyped[7] == "y"
- and lettersTyped[8] == "O" then
- rs.setOutput("left", true)
- sleep(2)
- rs.setOutput("left", false)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement