ok i got the online to be green but the offline does not come out red, i cannot work out why?
code:
var ThirtyMins = 1800000;
var SixtyMins = 3600000;
function OnEvent_SigninReady(sEmail){
var contacts = Messenger.MyContacts;
var online = 0;
var offline = 0;
for(var e = new Enumerator(contacts); !e.atEnd(); e.moveNext()){
item = e.item();
if(item.Status != 1 && item.Status != 0){
online++;
} else {
offline++;
}
}
MsgPlus.DisplayToastContact('Who is Online?',online+'[c=9] Contacts are Online![/c]',offline+'[c=4] Contacts are Offline[/c]');
MsgPlus.AddTimer('reload', ThirtyMins) //Repalce with SixtyMins if you want an hour
}
function OnEvent_Timer(sTimerId){
if (sTimerId == 'reload'){
OnEvent_SigninReady(Messenger.MyEmail); //Simply call the function so you dont duplicate code
}
}
oh also i changed the toast title, as i didnt like the original
Edit: oh Matty already did it