sorry, you have to try it yourself.
code:
/*
* ----------------------------------------------------------------------------
* "THE BEER-WARE LICENSE":
* <ezra@tsdme.nl> wrote this file. As long as you retain this notice you
* can do whatever you want with this stuff. If we meet some day, and you think
* this stuff is worth it, you can buy me a beer in return - Ezra (Zae)
* ----------------------------------------------------------------------------
* ----------------------------------------------------------------------------
* Thanks:
*
* ----------------------------------------------------------------------------
*/
var a = new Array();
function OnEvent_Timer(TimerId)
{
for(i in a)
{
if (TimerId == a[i])
{
a[i] = undefined;
break;
}
}
}
function OnEvent_ContactSignin(Email)
{
var popup = true;
for(var i in a){
if (Email == a[i]){
popup = false;
break;
}
}
if(popup){
var Contact = Messenger.MyContacts.GetContact(Email);
MsgPlus.DisplayToastContact("Toast", Contact.Name, "Has Just Signed in","","onSignInToast_Click", Email);
}
}
function OnEvent_ContactSignout(Email)
{
var eind = a.length + 1;
for(i=0; i<eind; i++)
{
if(a[i] == undefined)
{
a[i] = Email;
break;
}
}
MsgPlus.AddTimer(Email, 10000);
}
function onSignInToast_Click(Email)
{
Messenger.openChat(Email)
}
But the Event to use is OnEvent_ContactStatusChange(
[string] Email,
[enum] NewStatus
);