Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("back")
- mon = peripheral.wrap("top")
- mon.setTextScale(0.5)
- term.redirect(mon)
- print(" ** SKS-ES v1.0 ** ")
- local function rmButtons()
- while true do
- local event,from,message,distance = os.pullEvent("rednet_message")
- if tonumber(message) then
- os.queueEvent("key",tonumber(message) or 0)
- elseif message ~= "nil" then
- os.queueEvent("char",message)
- end
- end
- end
- local function OverShell()
- shell.run("shell")
- end
- local function doCommandKeys()
- while true do
- if rs.getInput("left") then
- os.queueEvent("key",208)
- elseif rs.getInput("right") then
- os.queueEvent("key",29)
- end
- end
- end
- parallel.waitForAny(rmButtons,OverShell)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement