This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
panicmore's profile picture

using wired modems and os.pullEvent()

Started by panicmore, 01 June 2013 - 03:00 AM
panicmore #1
Posted 01 June 2013 - 05:00 AM
how would I use an OS pull event and a wired modem attached to a peripheral? specifically how would I tell, using a chat box, get an input from user in chat and do something depending on what that is, I can do this by wrapping it directly to the computer, but I'm unsure of the process with wired modems. I guess basically I'm asking how to wrap a peripheral with wired modems.
panicmore #2
Posted 01 June 2013 - 05:06 AM
while writing this I kind of answered my own question, just wrap it like a normal peripheral but instead of a side use the name foor example:

chatBox = peripheral.wrap("chat_0")
and you can use os pull events fine
Noiro #3
Posted 03 June 2013 - 07:28 AM
So would this allow your computer to respond regardless of where you were on the map if you entered a !command ?