Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.clear()
- term.setCursorPos(1, 1)
- print("Remote [1]")
- print("IMClient [2]")
- print("Calculator [3]")
- print("NumberGame [4]")
- print("Comp. Info [5]")
- print("Options [6]")
- print("Reboot [7]")
- print("Shutdown [8]")
- local sEvent, param = os.pullEvent("key")
- if(sEvent == "key" ) then
- if(param == 2) then
- term.clear()
- term.setCursorPos(1, 1)
- shell.run("remote")
- elseif(param == 3) then
- term.clear()
- term.setCursorPos(1, 1)
- shell.run("IMClient")
- elseif(param == 4) then
- term.clear()
- term.setCursorPos(1, 1)
- shell.run("calculator")
- elseif(param == 5) then
- term.clear()
- term.setCursorPos(1, 1)
- shell.run("numbergame")
- elseif(param == 6) then
- term.clear()
- term.setCursorPos(1, 1)
- shell.run("label get")
- shell.run("id")
- shell.run("gps.locate()")
- sleep(3)
- print("x to return to menu")
- elseif(param == 7) then
- term.clear()
- term.setCursorPos(1, 1)
- shell.run("options")
- elseif(param == 8) then
- sleep(1)
- os.reboot()
- elseif(param == 9) then
- sleep(1)
- os.shutdown()
- elseif(param == 10) then
- sleep(1)
- shell.run("help")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement