Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mon = peripheral.wrap("back")
- while true do
- mon.setBackgroundColour((colours.black))
- mon.clear()
- mon.setCursorPos(1,3)
- mon.setBackgroundColour((colours.lime))
- mon.write("Get Key")
- event, side, x, y = os.pullEvent("monitor_touch")
- if x > 1 and x < 7 and y == 3 then
- mon.setBackgroundColour((colours.black))
- mon.clear()
- mon.setCursorPos(1,3)
- mon.setBackgroundColour((colours.red))
- mon.write("Get Key")
- rs.setOutput("bottom", true)
- sleep(1)
- rs.setOutput("bottom", false)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement