What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Get contact numbers

Get contact numbers
Author: Message:
Leydorn
New Member
*

Avatar

Posts: 2
41 / Other / Flag
Joined: Sep 2008
O.P. Huh?  Get contact numbers
Hello everybody,

I have a problem with a script showing contact numbers, as it's showing less contacts than I really have.

The part of the script is :

function getContacts()
{
    var contacts = Messenger.MyContacts;
    var online = 0;
    var offline = 0;
    var c;
    for(var enume = new Enumerator(contacts);!enume.atEnd();enume.moveNext()){
        c = enume.item();
        if(c.Status != 1){
            online++;
        }
        else {
            offline++;
        }
    }

    if(DEFAULT_USERS == 2) {
    return online + ' En ligne | ' + offline;
    }
    else {
    return online;
   
    }

Is there anything to change?

Thanks ;)
(the entire script also indicates the total RAM and the RAM used, and the time since the computer has started)

This post was edited on 09-02-2008 at 07:39 PM by Leydorn.
09-02-2008 05:13 PM
Profile E-Mail PM Find Quote Report
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
36 / Male / Flag
Joined: Aug 2006
RE: Get contact numbers
The problem won't be with your script, but rather with the contact's cache. Search for posts on how to clear it on this forum and it should work
<Eljay> "Problems encountered: shit blew up" :zippy:
09-02-2008 07:21 PM
Profile PM Find Quote Report
Leydorn
New Member
*

Avatar

Posts: 2
41 / Other / Flag
Joined: Sep 2008
O.P. RE: Get contact numbers
Thanks, it (deleting contact files in the Documents and Settings/Contacts folder) worked for the online contacts, but not for the offline ones (it shows 355 instead of 918, and it started with 400).
09-02-2008 08:44 PM
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