Advertisement
jonok333

mon on/off 1

Dec 24th, 2023
17
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. local mon = peripheral.find("monitor")
  2. mon.clear()
  3. while true do
  4. mon.setCursorPos(1, 1)
  5. mon.write("test")
  6. event, side, x, y = os.pullEvent ("monitor_touch")
  7. if x == 1 and y == 1 then
  8. mon.setCursorPos(3, 3)
  9. mon.write("klik")
  10. event, side, x, y = os.pullEvent ("monitor_touch")
  11. if x > 1 and y > 1 then
  12. mon.clearLine()
  13. end
  14. end
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement