What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [request]group online/offline

[request]group online/offline
Author: Message:
Jimbo
Veteran Member
*****

Avatar

Posts: 1650
Reputation: 18
32 / Male / Flag
Joined: Jul 2006
O.P. [request]group online/offline
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?
08-06-2006 09:55 AM
Profile E-Mail PM Find Quote Report
ddunk
Veteran Member
*****

Avatar

Posts: 1228
Reputation: 51
35 / Male / Flag
Joined: Mar 2004
RE: [request]group online/offline
Where would you want this to show?
08-06-2006 09:57 AM
Profile E-Mail PM Web Find Quote Report
Jimbo
Veteran Member
*****

Avatar

Posts: 1650
Reputation: 18
32 / Male / Flag
Joined: Jul 2006
O.P. RE: [request]group online/offline
In a toast, all on top of each other

If u need my groups names

they are:

Friends-boys

Friends-girls

Family
08-06-2006 09:58 AM
Profile E-Mail PM Find Quote Report
ddunk
Veteran Member
*****

Avatar

Posts: 1228
Reputation: 51
35 / Male / Flag
Joined: Mar 2004
RE: [request]group online/offline
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.
08-06-2006 10:07 AM
Profile E-Mail PM Web Find Quote Report
Jimbo
Veteran Member
*****

Avatar

Posts: 1650
Reputation: 18
32 / Male / Flag
Joined: Jul 2006
O.P. RE: [request]group online/offline
ok
Is it possible just to show me how many people are online like xx/xx in a toast
08-06-2006 10:09 AM
Profile E-Mail PM Find Quote Report
alexp2_ad
Scripting Contest Winner
****

Avatar
Who love the chocolate?

Posts: 691
Reputation: 26
37 / Male / –
Joined: May 2004
Status: Away
RE: [request]group online/offline
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.
08-06-2006 10:19 AM
Profile E-Mail PM Find Quote Report
Jimbo
Veteran Member
*****

Avatar

Posts: 1650
Reputation: 18
32 / Male / Flag
Joined: Jul 2006
O.P. RE: [request]group online/offline
thanks, works a charm

but is it possible rather than just xx/xx

can it say?:

xx contacts are online
xx contacts are offline
08-06-2006 10:20 AM
Profile E-Mail PM Find Quote Report
alexp2_ad
Scripting Contest Winner
****

Avatar
Who love the chocolate?

Posts: 691
Reputation: 26
37 / Male / –
Joined: May 2004
Status: Away
RE: [request]group online/offline
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. ;)

This post was edited on 08-06-2006 at 10:31 AM by alexp2_ad.
08-06-2006 10:29 AM
Profile E-Mail PM Find Quote Report
Jimbo
Veteran Member
*****

Avatar

Posts: 1650
Reputation: 18
32 / Male / Flag
Joined: Jul 2006
O.P. RE: [request]group online/offline
thanks so much
08-06-2006 10:30 AM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »


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