This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
FuuuAInfiniteLoop(F.A.I.L)'s profile picture

Run a program on a monitor and queue events sended from rednet at the same time

Started by FuuuAInfiniteLoop(F.A.I.L), 18 March 2013 - 11:58 AM
FuuuAInfiniteLoop(F.A.I.L) #1
Posted 18 March 2013 - 12:58 PM
Im creating a program that uses a monitor as a keyboard and i want to know how i can run a program in a monitor and queue the events received from rednet

code so far:

rednet.open("back")
monitorside = "top"
peripheral.call("top", "setTextScale", 0.5)
functrion redneta()
while true do
  id, msg = rednet.receive()
  os.queueEvent(unpack(textutils.unserialize(msg)))
end
end
Any help?
theoriginalbit #2
Posted 18 March 2013 - 02:17 PM
Use the 'rednet_message' or 'modem_message' event instead of rednet receive and then requeuing the event. Then you can still use 'monitor_touch' as it doesn't hold on rednet.receive.