Jump to content




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


  • You cannot reply to this topic
1 reply to this topic

#1 FuuuAInfiniteLoop(F.A.I.L)

  • Banned
  • 435 posts
  • LocationThe left part of this post

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?

#2 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

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.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users