Advertisement
Guest User

passcode

a guest
Dec 28th, 2014
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.41 KB | None | 0 0
  1. os.loadAPI("button")
  2. mon = button.wrapmon("top")
  3. mon.clear()
  4.  
  5. function fillTable()
  6.   button.setTable("1", type1, 4, 8, 4, 6)
  7.   button.setTable("4", type1, 4, 8, 7, 9)
  8.   button.screen(mon)
  9. end
  10.  
  11. function getClick()
  12.   event, side, x, y = os.pullEvent("monitor_touch")
  13.   button.checkxy(x,y)
  14. end
  15.  
  16. function type1()
  17.    button.flash("1",mon)
  18.    print("trol")
  19. end
  20. fillTable()
  21. while true do
  22.   getClick()
  23. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement