Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("button")
- monitor = peripheral.wrap("top")
- function gotoln()
- local x, y = monitor.getCursorPos()
- if y1 == y then
- monitor.scroll(1)
- monitor.setCursorPos(1, y)
- else
- monitor.setCursorPos(1, y+1)
- end
- end
- function button1() button.toggleButton("open")
- end
- function ecran()
- button.setTable("open",button1,8,25,3,3)
- button.screen()
- end
- function getClick()
- event,side,x,y = os.pullEvent("monitor_touch")
- button.checkxy(x,y)
- end
- ecran()
- while true do getClick() end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement