Operating system for OpenComputers
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
309B

  1. _G.clip = ""
  2. function start()
  3. return os.spawn(function()
  4. local lc
  5. while true do
  6. local eT = {coroutine.yield()}
  7. if eT[1] == "clipboard" then
  8. if computer.uptime() > lc + 5 then
  9. _G.clip = ""
  10. end
  11. lc = computer.uptime()
  12. _G.clip = _G.clip .. eT[3]
  13. end
  14. end
  15. end)
  16. end