Assignment #2: password123

Make a patch that checks whether the last 11 letters typed on the keyboard match the string “password123″.

  • Use [key] to detect the keypresses
  • Keep track of the ASCII values of the 11 last typed letters with the [zl stream 11] object
  • Use [zl compare] in order to compare the values you get from [zl stream 11] to the values for “password123″. (You can convert “password123″ into a list of ASCII values by hand in order to compare it).
  • When “password123″ is typed trigger an event of your choice (open a gate, play a sound, …)