Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("button")
- m = peripheral.wrap("left")
- m.clear()
- rednet.open("right")
- m.setTextScale(1,5)
- function button1() button.toggleButton("Alarm")
- message = 1
- rednet.send(10, message)
- redstone.setOutput("back", true)
- sleep(1)
- button.toggleButton("Alarm")
- m.clear()
- end
- function button2() button.toggleButton("2")
- print("kikoo")
- sleep(2)
- button.toggleButton("2")
- end
- function ecran()
- button.setTable("Alarm",button1,2,6,3,3)
- button.setTable("2",button2,12,25,6,6)
- button.screen()
- end
- function getClick()
- envent,side,x,y = os.pullEvent("monitor_touch")
- button.checkxy(x,y)
- end
- ecran()
- while true do
- getClick()
- if redstone.getInput("top", true) then
- shell.run("txt")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement