Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --INFO
- --(only for advanced computers)
- --How to use: Just type "pastebin run hdH9umHF"
- --Sry this is in GERMAN and I won't update it (maybe for some extra last things),
- --because I was just testing things out and learn how they work.
- --But I pretty much wanted to somehow make it useful for newbies in CC
- --Notice if you go on +Programm (add a program) the last box is "Extra Sett." ! This is necessary, if your program uses fullscreen.
- --If it DOES just type "true"
- --Now, if you boot your program and want to exit it, press STRG / CTRL!
- --(This is one of the main things I wanted to test in CC. It just opens the program, adds some lines so that you can exit to
- --the desktop with STRG / CTRL)
- --And no, i won't add things like multitasking (multiple windows) or clickable icons on your desktop
- --And yes, my english is bad ... I'm german.
- --DoorOS Installer
- --Geschrieben von Piorjade
- --Do not copy and claim it as your own.
- --Variablen
- running = false
- --Funktionen
- button = function()
- term.setBackgroundColor(colors.gray)
- term.setTextColor(colors.white)
- end
- clear = function()
- term.setBackgroundColor(colors.blue)
- term.setTextColor(colors.white)
- term.setCursorPos(1, 1)
- term.clear()
- end
- clickEvent = function()
- while running do
- local event, button, X, Y = os.pullEventRaw()
- if event == "mouse_click" then
- if X >=1 and X <= 31 and Y == 6 and button == 1 then
- shell.run("pastebin get dJd0B0V8 compilr")
- shell.run("pastebin get aE3Gh5j2 build")
- shell.run("build --extract")
- shell.run("delete compilr")
- shell.run("delete build")
- os.reboot()
- elseif X >=1 and X <= 31 and Y == 8 and button == 1 then
- shell.run("delete /doorOS")
- shell.run("delete /startup")
- os.reboot()
- elseif X >=1 and X <= 31 and Y == 10 and button == 1 then
- os.reboot()
- end
- end
- end
- end
- drawMenu = function()
- clear()
- term.setCursorPos(17,2)
- print("DoorOS installer")
- term.setCursorPos(1, 4)
- print("Waehle die Aktion")
- print("")
- button()
- print("Auf die Festplatte installieren")
- print("")
- print("Betriebssystem entfernen ")
- print("")
- print("Exit ")
- running = true
- clickEvent()
- end
- --CODE
- drawMenu()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement