2019-08-07 21:07:37 +10:00
|
|
|
_G.clip = ""
|
2020-05-22 05:02:46 +10:00
|
|
|
|
|
|
|
function start()
|
|
|
|
return os.spawn(function()
|
|
|
|
local lc
|
|
|
|
while true do
|
|
|
|
local eT = {coroutine.yield()}
|
|
|
|
if eT[1] == "clipboard" then
|
|
|
|
if computer.uptime() > lc + 5 then
|
|
|
|
_G.clip = ""
|
|
|
|
end
|
|
|
|
lc = computer.uptime()
|
|
|
|
_G.clip = _G.clip .. eT[3]
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end)
|
2019-08-07 21:07:37 +10:00
|
|
|
end
|