Shoutbox

[request]group online/offline - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: [request]group online/offline (/showthread.php?tid=64540)

[request]group online/offline by Jimbo on 08-06-2006 at 09:55 AM

Is it possible for someone to create a script so that when i sign in, msn shows me how many people in each of my groups are sgned in?


RE: [request]group online/offline by ddunk on 08-06-2006 at 09:57 AM

Where would you want this to show?


RE: [request]group online/offline by Jimbo on 08-06-2006 at 09:58 AM

In a toast, all on top of each other

If u need my groups names

they are:

Friends-boys

Friends-girls

Family


RE: [request]group online/offline by ddunk on 08-06-2006 at 10:07 AM

Bah, sorry, wasn't thinking with that first post. Scripts can't tell what group a contact is in, so that can't be done, sorry.


RE: [request]group online/offline by Jimbo on 08-06-2006 at 10:09 AM

ok
Is it possible just to show me how many people are online like xx/xx in a toast


RE: [request]group online/offline by alexp2_ad on 08-06-2006 at 10:19 AM

Yup, simple, just create a new script in Plus > Preferences > Scripts and copy this over everything in the script:

code:
function OnEvent_SigninReady(sEmail){
    var contacts = Messenger.MyContacts;
    var online = 0;
    var total = 0;
    for(var e = new Enumerator(contacts); !e.atEnd(); e.moveNext()){
        item = e.item();
        total++;
        if(item.Status != 1 && item.Status != 0){
            online++;
        }
    }
    MsgPlus.DisplayToast('Online',online+'/'+total);
}

I'll make a script pack if you want, but doesn't really seem needed.
RE: [request]group online/offline by Jimbo on 08-06-2006 at 10:20 AM

thanks, works a charm

but is it possible rather than just xx/xx

can it say?:

xx contacts are online
xx contacts are offline


RE: [request]group online/offline by alexp2_ad on 08-06-2006 at 10:29 AM

code:
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');
}

And in that near last line, with the "contacts are online" text you could add font tags to put online in bold, or green or something if you wanted. ;)
RE: [request]group online/offline by Jimbo on 08-06-2006 at 10:30 AM

thanks so much