Advertisement
Guest User

startup

a guest
Jan 16th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.41 KB | None | 0 0
  1. print("Reaktor Steuerung:")
  2. term.setCursorPos(3,5)
  3. term.setBackgroundColor(colors.green)
  4. write("ON")
  5. term.setBackgroundColor(colors.black)
  6. write("/")
  7. term.setBackgroundColor(colors.red)
  8. write("OFF")
  9. term.setBackgroundColor(colors.black)
  10.  
  11.  
  12. while true do
  13.   local event, button, X, Y = os.pullEvent("mouse_click")
  14.   if X >= 3 and X <= 8 and Y == 5 and button == 1 then
  15.   shell.run("passwort")
  16.   break
  17.  end
  18. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement