quote:
Originally posted by davidpolitis
Try this:
code:
function OnEvent_MenuClicked(MenuId, Location, ChatWnd)
{
if (MenuId == "MenuID")
{
for(var enumerator = new Enumerator(ChatWnd.Contacts) ; !enumerator.atEnd(); enumerator.moveNext())
{
var Contact = enumerator.item();
var sChatWnd = Messenger.OpenChat(Contact.Email);
sChatWnd.SendMessage("Message Here");
}
}
}
Do I have to put this in the 'WndStart.Handler' ?