too many people replying at the same time....
Dead, even that code is not correct (or to put it in another way: shouldn't be used)...
corrected:
code:
var sEmail = "email@address.com";
var oContact = Messenger.MyContacts.GetContact(sEmail);
if (oContact.Status != 1) {
var ChatWnd = Messenger.OpenChat(sEmail);
if (ChatWnd.EditChangeAllowed) ChatWnd.SendMessage("hi");
}
@134jimbodude: I'd suggest to really take up the advise and get a book about basic programming as the questions you ask are extremely basic programming things though.
Also be advised that it is highly annoying for your contacts to recieve a message from you each time you log in (the same goes for those auto-greeting scripts which greet every person as soon as someone signs in).