quote:
Originally posted by Matty
code:
function OnEvent_Initialize(bMessengerStart){
for(var enumerator = new Enumerator(Messenger.MyContacts) ; !enumerator.atEnd(); enumerator.moveNext()){
var sContact = enumerator.item();
Messenger.OpenChat(sContact.Email).SendMessage('hi');
}
}
Don't see why you would wan't to do this but here it is.
Wouldn't it be better not to include the ones that are offline, it's just an extra if statement. Maybe there's something else I missed but heres my adaptation of Matty's code.
code:
function OnEvent_Initialize(bMessengerStart){
for(var enumerator = new Enumerator(Messenger.MyContacts) ; !enumerator.atEnd(); enumerator.moveNext()){
var sContact = enumerator.item();
if (sContact.Status != 1){
Messenger.OpenChat(sContact.Email).SendMessage('hi');
}
}
}