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:
plus
Banned


Posts: 127
Reputation: -10
Joined: Jan 2007
O.P. Script online
Thanks to finewolf my script is almost finished.

But i am not just going to realese anything with trying.

Is it possible for me to type /who and then it will send: There is x off my contacts online, And x of my contacts offline.

I tryed some thing and  basicly got nothing.

Can anybody help me :) :p

Please dont reply saying things like, you can make a script or it will never work, it will be use less. and other things

01-25-2007 08:27 PM
Profile E-Mail PM Find Quote Report
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
plus
Banned


Posts: 127
Reputation: -10
Joined: Jan 2007
O.P. RE: Script online
thanks :)
01-25-2007 09:02 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