2017-05-20 06:55:11 +10:00
|
|
|
function nshd(evPP,tEPs,sI)
|
|
|
|
s("netsh daemon",function() print(pcall(function()
|
2017-04-20 19:03:06 +10:00
|
|
|
while true do
|
|
|
|
if ev[1] == "net_msg" then
|
2017-04-23 19:05:16 +10:00
|
|
|
local V,msg=false,tostring(ev[4])
|
2017-04-20 19:03:06 +10:00
|
|
|
for k,v in ipairs(tEPs) do if ev[2] == v then V=true end end
|
|
|
|
if ev[3] == evPP and V then
|
|
|
|
if msg:sub(1,3) == "key" then
|
2017-05-20 06:55:11 +10:00
|
|
|
h("key",tT[cT][3].sI,tonumber(msg:sub(4)),0)
|
2017-04-20 19:03:06 +10:00
|
|
|
end
|
|
|
|
end
|
2017-05-20 06:55:11 +10:00
|
|
|
elseif ev[1] == "display" and ev[3] == tT[cT][3].sI then
|
2017-04-20 19:03:06 +10:00
|
|
|
for k,v in ipairs(tEPs) do
|
|
|
|
ns(v,evPP,"dis"..tostring(ev[2]))
|
|
|
|
end
|
|
|
|
end
|
|
|
|
C.yield()
|
|
|
|
end
|
2017-05-20 06:55:11 +10:00
|
|
|
end)) end,{["sI"]=sI})
|
|
|
|
luash({["sI"]=sI})
|
|
|
|
end
|