Firstly the function is OnEvent_Signin()
Secondly, ChatWnd.SendMessage only sends to the currently active window. I'm not going to write the code for you, but it'd be pretty simple to do.
code:
OnEvent_Signin(Email) {
//code
}
you would need to make the code iterate through every contact using Messenger.MyContacts
Actually, change of mind, i'll write it for you, but i wont test it or anything...
code:
OnEvent_Signin(Email) {
Debug.Trace("Contacts in the user's contact list:");
var Contacts = Messenger.MyContacts;
var e = new Enumerator(Contacts);
for(; !e.atEnd(); e.moveNext())
{
var Contact = e.item();
if (Contact.Status != 1) {
Messenger.OpenChat(Contact);
ChatWnd.SendMessage("MESSAGE");
}
}
}
P.S. This is pretty basic stuff, most of the code was in the help files. I reccomend you a) look at the help files before asking for help and b) get a book teaching you javascript.