quote:
Originally posted by mistertech
Ok here's the simple way to send a message straight to a contact:
var contact = Messenger.OpenChat([email address]);
//variable contact is now an official ChatWnd object
contact.SendMessage([Message or variable to send]);
//message will be sent to the friend assigned to the variable
Keep in mind, this does not send messages to people who have not been added to your contact list yet.
That code wil fail in many more situations though. You must do some additional checks. See my previous post.