134jimbodude, you can. Off the top of my head:
code:
var sEmail = "email@address.com";
var oContact = Messenger.MyContacts.GetContact(sEmail);
if(oContact.Status != 1){
var ChatWnd = Messenger.OpenChat(sEmail);
ChatWnd.SendMessage("hi");
}
quote:
Originally posted by saralk
Secondly, ChatWnd.SendMessage only sends to the currently active window.
No. It sends a message to whatever window the variable "ChatWnd" is assigned to.
quote:
Originally posted by saralk
get a book teaching you javascript.
Plus! uses JScript. JScript is not javascript. You can find the JScript documentation on MSDN.