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

problem with invalid command
Author: Message:
Zeelia
New Member
*


Posts: 11
– / Male / Flag
Joined: Dec 2007
O.P. problem with invalid command
<For moderators: please move this thread to the appropriate forum if it is not on the appropriate forum>

Hi!
I have made an command and an action for the command but when i try the command in an chat window the action works and all, i get an Messenger Plus toast but i also get the invalid command prompt which tells me something about "invalid command... if you weren't intending on writing an command start with double-slash '//"
so i need help to get rid of that invalid command prompt, here is my code:

code:
//vars
var appenable = "no";

function OnEvent_ChatWndSendMessage(ChatWnd, sMessage)
{
    if(sMessage=="/shortopener enable") {
        appenable = "yes";
        return(MsgPlus.DisplayToast("Shortopener :: Enable", "Shortopener enabled!"));
    }
}

function OnGetScriptCommands()
{
    var Commands = "<ScriptCommands>";
    Commands += "<Command>";
    Commands += "<Name>shortopener enable</Name>";
            Commands += "<Description>Shortopener \n Enables the shortopener, must be written before starting to use Shortopener</Description>";
    Commands += "</Command>";
    Commands += "</ScriptCommands>";
    return Commands;
}


its not a really big thing but its really irritating when you want to type in the command and get the unnecessary prompt when the command does its work so please help me

This post was edited on 05-06-2008 at 11:10 PM by Zeelia.
05-06-2008 11:08 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
problem with invalid command - by Zeelia on 05-06-2008 at 11:08 PM
RE: problem with invalid command - by roflmao456 on 05-06-2008 at 11:46 PM
RE: problem with invalid command - by CookieRevised on 05-07-2008 at 01:04 AM
RE: problem with invalid command - by Zeelia on 05-07-2008 at 05:13 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