Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mon1=peripheral.wrap("top")
- printer=peripheral.wrap("bottom")
- mon1.clear()
- mon1.setCursorPos(1,1)
- mon1.write("TICKET")
- mon1.setCursorPos(1,3)
- mon1.write("DRUCKEN")
- while true do
- mon1.setCursorPos(1,5)
- mon1.write(textutils.formatTime(os.time()))
- event, side, x, y = os.pullEvent("monitor_touch")
- if x > 1 and x < 7 and y == 3 then
- printer.newPage()
- printer.write("***Ticket***")
- printer.setCursorPos(1, 2)
- printer.write("TAG-Parkplatz")
- printer.setCursorPos(1, 3)
- printer.write("VON:")
- printer.setCursorPos(1, 4)
- printer.write(textutils.formatTime(os.time()))
- printer.setCursorPos(1, 5)
- printer.write("BIS:")
- printer.setCursorPos(1, 6)
- printer.write(textutils.formatTime(os.time()+0.60))
- printer.endPage()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement