matty
Scripting Guru
Posts: 8336 Reputation: 109
39 / /
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.
|
|