Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.clear()
- term.setCursorPos(1,1)
- Key = Load
- write("Welcome To Terra-DoorLock v0.2")
- write("Type Load To Start Keypad GUI")
- write("Key: ")
- start()
- load()
- function start()
- term.clear()
- term.setCursorPos(1,1)
- write("Please Input The Peripheral Moniter's Network ID")
- ID = read()
- mon = peripheral.wrap(ID)
- monload()
- end
- function load()
- k = read()
- if k == (Key) then
- start()
- else
- term.clear()
- term.setCursorPos(1,1)
- write("Type Load")
- write("Key: ")
- load()
- end
- end
- function loaded()
- term.clear()
- term.setCursorPos(1,1)
- write("Loaded")
- textutils.slowPrint("Going To Default OS")
- sleep(2)
- term.clear()
- term.setCursorPos(1,1)
- end
- function monload()
- term.clear()
- term.setCursorPos()
- textutils.slowPrint("Loading . . .")
- mon.setBackgroundColor(colors.black)
- mon.setTextColor(colors.white)
- mon.clear()
- mon.setCursorPos(1,1)
- mon.write("1 2 3")
- mon.setCursorPos(1,2)
- mon.write("4 5 6")
- mon.setCursorPos(1,3)
- mon.write("7 8 9")
- mon.setCursorPos(1,5)
- mon.setTextColor(colors.red)
- mon.write("CLR")
- loaded()
- end
- event, side, x, y = os.pullEvent("monitor_touch")
- function clear()
- term.setCursorPos(4,5)
- term.clearLine
- end --Line 73
- while true do
- function code()
- numpos = mon.setCursorPos(1,4)
- event, side, x, y = os.pullEvent("monitor_touch")
- num()
- nompos = mon.setCursorPos(2,4)
- event, side, x, y = os.pullEvent("monitor_touch")
- num()
- nompos = mon.setCursorPos(3,4)
- event, side, x, y = os.pullEvent("monitor_touch")
- num()
- nompos = mon.setCursorPos(4,4)
- event, side, x, y = os.pullEvent("monitor_touch")
- num()
- end
- function num()
Advertisement
Add Comment
Please, Sign In to add comment