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

Script online
Author: Message:
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Script online
code:
    var _online = 0;
    var _offline = 0;

function _whos_online() {
    _online = 0;
    _offline = 0;
    for(var e = new Enumerator(Messenger.MyContacts); !e.atEnd(); e.moveNext()) {
        if(e.item().Status === 1) { _offline++; }
        else { _online++; }
    }
}

function OnEvent_ChatWndSendMessage(_oChatWnd, _nMessage){
    if (_nMessage === '/who') {
        _whos_online();
        _nMessage = 'There is '+_online+' of my contacts online, and '+_offline+' of my contacts offline.'
        return _nMessage;
    }
}

This post was edited on 01-25-2007 at 08:35 PM by matty.
01-25-2007 08:32 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Script online - by plus on 01-25-2007 at 08:27 PM
RE: Script online - by matty on 01-25-2007 at 08:32 PM
RE: Script online - by plus on 01-25-2007 at 09:02 PM


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