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

/command problem!
Author: Message:
drizzdk
New Member
*


Posts: 3
Joined: Oct 2007
O.P. /command problem!
function OnEvent_ChatWndSendMessage(oChatWnd, sMessage) {
    if (/^\/([^\s\/]+)\s*([\s\S]*)$/.exec(sMessage) !== null) {
        var command = RegExp.$1.toLowerCase();
        var parameter = RegExp.$2;
        switch (command) {
case 'donothing':
                // <- Lets tell the function we handled the command. But nothing needs to e passed back to the conversation; keep the command showing.
                ChatWnd.SendMessage("DDDDOOOHHH");
                Debug.Trace("command reconized: " + command + ", parameter: " + parameter);
                return "LOL!";
        }
    }
}

Why cant i do that ?
And how can i do it otherwise?
10-20-2007 04:40 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
/command problem! - by drizzdk on 10-20-2007 at 04:40 PM
RE: /command problem! - by Spunky on 10-20-2007 at 06:03 PM
RE: /command problem! - by drizzdk on 10-20-2007 at 06:27 PM
RE: /command problem! - by Mnjul on 10-20-2007 at 06:31 PM
RE: RE: /command problem! - by vikke on 10-20-2007 at 06:33 PM
RE: /command problem! - by Mnjul on 10-20-2007 at 06:55 PM
RE: /command problem! - by drizzdk on 10-20-2007 at 07:06 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