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

Help ME
Author: Message:
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Help ME
js code:
var objChatWnd = {};

function OnEvent_ChatWndSendMessage (pChatWnd, sMessage) {
    var m;
    if ((m = /^\/([^\s\/]+)\s*([\s\S]*)$/.exec(sMessage))) {
        switch (m[1].toLowerCase()) {
            case 'setuser' :
                objChatWnd[pChatWnd.Handle] = m[2];
                return '';
            case 'do' :
                return m[2]+' [['+objChatWnd[pChatWnd.Handle]+']]';
        }
    }
    return sMessage;
}

function OnEvent_ChatWndDestroyed (pChatWnd) {
    delete objChatWnd[pChatWnd.Handle];
}

function OnGetScriptCommands () {
    return '<ScriptCommands>'+
        '<Command><Name>setuser</Name><Description>Set\'s the users name for the chat window</Description>'+
        '<Command><Name>do</Name><Description>Appends the name to the message</Description>'+
        '</ScriptCommands>';
}

This post was edited on 05-05-2010 at 02:00 PM by matty.
05-04-2010 02:04 AM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Help ME - by traxrex on 05-03-2010 at 12:01 PM
RE: Help ME - by matty on 05-03-2010 at 04:01 PM
RE: Help ME - by traxrex on 05-04-2010 at 01:42 AM
RE: Help ME - by matty on 05-04-2010 at 02:04 AM
RE: Help ME - by traxrex on 05-04-2010 at 05:50 AM
RE: Help ME - by matty on 05-04-2010 at 12:50 PM
RE: Help ME - by CookieRevised on 05-04-2010 at 06:49 PM
RE: Help ME - by traxrex on 05-05-2010 at 03:12 AM
RE: Help ME - by CookieRevised on 05-05-2010 at 08:04 AM
RE: Help ME - by traxrex on 05-06-2010 at 04:04 AM


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