63 posts
Location
The Netherlands
Posted 12 September 2013 - 10:33 AM
In OpenPheripherals, when you wear glasses, you can have commands. But how do I make these?
1114 posts
Location
UK
Posted 12 September 2013 - 12:11 PM
I believe you have to use os.pullEvent("chat_command")
171 posts
Location
Eastern USA
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.