Advertisement
jonok333

mon1

Dec 24th, 2023 (edited)
6
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | Software | 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. os.sleep(1)
  11. mon.clearLine()
  12. end
  13. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement