Advertisement
fantadada

mi

Aug 28th, 2013
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.50 KB | None | 0 0
  1. rednet.open("")
  2.  
  3.     os.loadAPI("button")
  4.     m = peripheral.wrap("left")
  5.     m.clear()
  6.      
  7.     function button1() button.toggleButton("sonner")
  8.     sleep(1)
  9.     rednet.send(",sto")
  10.     button.toggleButton("sonner")
  11.     end
  12.      
  13. function ecran()
  14.     button.setTable("sonner",button1,8,25,3,3)
  15.     button.screen()
  16.     end
  17.      
  18.     function getClick()
  19.     event,side,x,y = os.pullEvent("monitor_touch")
  20.     button.checkxy(x,y)
  21.     end
  22.      
  23.     ecran()
  24.      
  25.     while true do getClick() end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement