Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("button")
- button.prepareMonitor()
- button.setGlobalButtonVar(11,3,2)
- function test1()
- print ("test1")
- end
- function test2()
- print ("test2")
- end
- function test3()
- print ("test3")
- end
- function test4()
- print ("test4")
- end
- button.addBasicButton("This",test1,button.toggle)
- button.addBasicButton("API",test2,button.toggle)
- button.addBasicButton("Is",test3,button.flash)
- button.addBasicButton("Cool",test4,button.toggle)
- button.calculateButtons()
- button.redrawScreen()
- while true do
- button.getClick()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement