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

Script Command
Author: Message:
Bewwen
New Member
*


Posts: 3
Joined: Mar 2007
O.P. Script Command
Hello..

I tried to make my own command. Like this: /test
It doesnīt matter how I try.. I canīt get this to work..


-------------------------------------------------------------------------

var test1 = 'Hello World!';

function OnGetScriptCommands()
{
    var ScriptCommands = "<ScriptCommands>";
    ScriptCommands    +=     "<Command>";
    ScriptCommands    +=         "<Name>test</Name>";
    ScriptCommands    +=         "<Description>testing</Description>";
    ScriptCommands    +=     "</Command>";
    ScriptCommands    += "</ScriptCommands>";

    return ScriptCommands;
}

function OnEvent_ChatWndSendMessage(ChatWnd, Message)
{

        <<Some kind of switch>>   (donīt know how)

    switch ("some thing") {
        case "/test": return function();
    }
}

function() {
    ChatWnd.SendMessage(test1);
}


-------------------------------------------------------------------------

can someone explane the switch and how to use it..
and the return when you have typed the "/test".. I am not sure if thatīs correkt either :D


//Bewwen
03-11-2007 08:35 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Script Command - by Bewwen on 03-11-2007 at 08:35 PM
RE: Script Command - by effection on 03-11-2007 at 08:41 PM
RE: Script Command - by NanaFreak on 03-11-2007 at 08:45 PM
RE: RE: Script Command - by Matti on 03-12-2007 at 05:18 PM
RE: Script Command - by Bewwen on 03-11-2007 at 09:07 PM
RE: Script Command - by effection on 03-11-2007 at 09:12 PM
RE: Script Command - by Bewwen on 03-11-2007 at 09:14 PM
RE: Script Command - by NanaFreak on 03-11-2007 at 09:14 PM
RE: Script Command - by markee on 03-11-2007 at 10:06 PM
RE: Script Command - by effection on 03-11-2007 at 10:24 PM
RE: Script Command - by Felu on 03-12-2007 at 08:42 AM
RE: Script Command - by Spunky on 03-12-2007 at 03:44 PM
RE: Script Command - by markee on 03-12-2007 at 03:58 PM
RE: Script Command - by Spunky on 03-12-2007 at 04:09 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