What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » 1 hour interval, who's online

1 hour interval, who's online
Author: Message:
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: 1 hour interval, who's online
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('Online',online+' contacts are online',offline+' contacts are offline');
    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
    }
}
08-06-2006 02:43 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
1 hour interval, who's online - by Jimbo on 08-06-2006 at 02:32 PM
RE: 1 hour interval, who's online - by matty on 08-06-2006 at 02:43 PM
RE: 1 hour interval, who's online - by Jimbo on 08-06-2006 at 02:45 PM
RE: 1 hour interval, who's online - by absorbation on 08-06-2006 at 02:47 PM
RE: 1 hour interval, who's online - by Jimbo on 08-06-2006 at 02:47 PM
RE: 1 hour interval, who's online - by matty on 08-06-2006 at 02:50 PM
RE: 1 hour interval, who's online - by Jimbo on 08-06-2006 at 02:50 PM
RE: 1 hour interval, who's online - by Jimbo on 08-06-2006 at 02:57 PM
RE: 1 hour interval, who's online - by Veggie on 08-06-2006 at 03:03 PM
RE: 1 hour interval, who's online - by Jimbo on 08-06-2006 at 03:03 PM
RE: 1 hour interval, who's online - by Jimbo on 08-06-2006 at 03:05 PM
RE: 1 hour interval, who's online - by matty on 08-06-2006 at 03:11 PM
RE: 1 hour interval, who's online - by Jimbo on 08-06-2006 at 03:13 PM
RE: 1 hour interval, who's online - by Lukeyy19 on 08-06-2006 at 03:14 PM
RE: 1 hour interval, who's online - by Jimbo on 08-06-2006 at 03:23 PM
RE: RE: 1 hour interval, who's online - by alexp2_ad on 08-06-2006 at 09:23 PM
RE: 1 hour interval, who's online - by 4penguino on 08-06-2006 at 09:19 PM
RE: 1 hour interval, who's online - by 4penguino on 08-06-2006 at 09:29 PM
RE: 1 hour interval, who's online - by Jimbo on 08-07-2006 at 09:43 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On