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

[Openpheripherals] How To Use $$ Commands?

Started by rickydaan, 12 September 2013 - 08:33 AM
rickydaan #1
Posted 12 September 2013 - 10:33 AM
In OpenPheripherals, when you wear glasses, you can have commands. But how do I make these?
Zudo #2
Posted 12 September 2013 - 12:11 PM
I believe you have to use os.pullEvent("chat_command")
electrodude512 #3
Posted 12 September 2013 - 04:52 PM
You type $$command while wearing the glasses to send a command. What ZudoHackz said to get the command will work.

event, command = os.pullEvent("chat_command")

EDIT: I'm sorry, I just realized that the title says "$$ commands". By "make" I thought you meant how do you make the chat_command event actually get sent to the computer, not just how do you have the computer respond to the event.