quote:
Originally posted by IGx89
How do I send messages to MsgPlus, like to change to a personalized status? The sample code completely covered responding to messages, but had nothing about sending messages.
you only can send messages to plus when a user types a command like /x.... and plus calls your plugin to process the command. the way to do it is as PK said:
quote:
Originally posted by Predatory Kangaroo
you should send back a command like /online where you would normally send back some text.
quote:
Originally posted by Predatory Kangaroo
You can make messenger perform a series of actions by sending back a string like: "/online#3#I'm off for a while now.#3#/away"
Note that before each #3# you should put a new line. ie: you should send back:
code:
/online
#3#I'm off for a while now.
#3#/away
quote:
Originally posted by IGx89
What is the best way to perform an action every x seconds? Creating a separate thread?
if you wish to perform it when the user types a command (again, a command like /x....) the best you can do is use the syntax #X# as described before.
About creating a separate thread, ... well it depends on what you want to do. with a separate thread you won't be able to send messages back or things like that. however you should be able to play a sound every 2 seconds, for example.
quote:
Originally posted by IGx89
Is it possible to auto-respond to questions from contacts?
if they use your pluging to send those questions, yes it is; if not, sorry, you can't
quote:
Originally posted by IGx89
What's the best way to retrieve the user's current status?
Maybe with the messenger object that plus puts as a parameter in the functions like parsecommand?? I'm not sure.