Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Loading desktop
- background = paintutils.loadImage("desktop.png")
- paintutils.drawImage(background, 1, 1)
- function scp(x, y)
- term.setCursorPos(x, y)
- end
- function sbc(color)
- term.setBackgroundColor(color)
- end
- function stc(color)
- term.setTextColor(color)
- end
- scp(1, 19)
- sbc(colors.green)
- write("Start")
- sbc(colors.blue)
- write(" ")
- --Buttons API
- running = true
- while running do
- local e, b, x, y = os.pullEvent("mouse_click")
- if x>=1 and x<=5 and y==19 then
- shell.run("start.app")
- running = false
- end
- if x>=2 and x<=6 and y>=2 and y<=5 then
- shell.run("sleep.app")
- running = false
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement