se7enek

Untitled

Jul 4th, 2014
303
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. local m = peripheral.wrap("right")
  2.  
  3. m.clear()
  4. m.setCursorPos(1, 1)
  5. m.write("[Commands] [Rules]")
  6.  
  7.  
  8. m.setBackgroundColor(colors.lightBlue)
  9. m.setTextColor(colors.black)
  10. m.setCursorPos(1,2)
  11. m.write("[DUPA]")
  12.  
  13.  
  14. while true do
  15. local event, side, x, y = os.pullEvent("monitor_touch")
  16.  
  17. if x >= 1 and x <= 10 and y == 1 then
  18. shell.run("commands")
  19. elseif x >= 13 and x <= 20 and y == 1 then
  20. shell.run("rules")
  21. end
  22. end
Advertisement
Add Comment
Please, Sign In to add comment