Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("button")
- m = peripheral.wrap("back")
- m.clear()
- btn.fillTable("Test1",1,1,3,1,"Ok",colors.blue)
- btn.createButton("Test1")
- term.setCursorPos(1,1)
- while true do
- term.setCursorPos(1,1)
- term.clearLine()
- term.setCursorPos(1,1)
- event,button,x,y=os.pullEvent("mouse_click")
- if x == nil or y == nil then
- print("What")
- end
- write(x..":"..y)
- sleep(.8)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement