quote:Originally posted by PaulE
And what i have to do when i want more then 1 email?
code://Add as much contacts as you want here, but not too much since looping can slow down your Messenger
var checkFor = new Array("someone@live.com", "somebody@live.com");
function OnEvent_ContactSignin(email) {
for(i in checkFor) {
if(email == checkFor[i]) {
//Now it even shows the name in the popup!
MsgPlus.DisplayToastContact("Notification", Messenger.MyContacts.GetContact(email).Name, "came online.", "", "ToastCallback", email);
return;
}
}
//Now accepts an email parameter to make things easier
function ToastCallback(email){
Messenger.OpenChat(email);
}
Damn, you already got it. Ah well, maybe this could be interesting for someone.
This post was edited on 12-12-2006 at 06:12 PM by Matti.