What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Question] Messenger Plus! Commands

[Question] Messenger Plus! Commands
Author: Message:
Sana
New Member
*

Avatar
Caption Removed. Rule violation.

Posts: 5
34 / Female / –
Joined: Oct 2006
O.P. [Question] Messenger Plus! Commands
I'm new to scripting (and JavaScript >.>) so to test a couple things I just made a quick Shell script.

I used this code to place my Plus! command into the listbox:

code:
function OnGetScriptCommands() {
    var commands = '<ScriptCommands>';
        commands+='<Command>';
            commands+='<Name>shell</Name>';
            commands+='<Description>Shell Execute</Description>';
        commands+='</Command>';
    commands+='</ScriptCommands>';
    return commands;   
}

And I used this to parse commands:

code:
function OnEvent_ChatWndSendMessage(ChatWnd,Message) {
     if (Message.charAt(0) == "/") {
          if (Message.charAt(1) == "/") {
               return Message;
          }else{
               if (Message.charAt(6) == " ") {
                   if (Message.charAt(7) != "") {
                         Shell.ShellExecute(Message.substr(7));
   
                   }
               }
          }
     }
}

So for example, I can type "/shell notepad" and it shells notepad.exe, or "/shell www.google.com" and it opens Google in my browser.

It works in that it shells whatever parameter I specify, but it keeps giving me the Plus! error that I'm using an invalid command at the same time:

quote:
---------------------------
Messenger Plus! Live
---------------------------
The command you entered was not recognized.
If the message was not meant to be a command, insert a double '//' at its beginning.
---------------------------
OK   
---------------------------

I want to eliminate this error message, since "/shell" is in fact the command that I'm trying to use (and it actually does shell my parameter).

Any help would be appreciated.
Signature Removed.
Rule violation.
10-27-2006 11:03 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[Question] Messenger Plus! Commands - by Sana on 10-27-2006 at 11:03 PM
RE: [Question] Messenger Plus! Commands - by pollolibredegrasa on 10-27-2006 at 11:16 PM
RE: [Question] Messenger Plus! Commands - by Spunky on 10-27-2006 at 11:20 PM
RE: [Question] Messenger Plus! Commands - by Baggins on 10-28-2006 at 12:00 AM
RE: [Question] Messenger Plus! Commands - by Plan-1130 on 10-28-2006 at 12:02 AM
RE: RE: [Question] Messenger Plus! Commands - by Baggins on 10-28-2006 at 12:18 AM
RE: [Question] Messenger Plus! Commands - by Sana on 10-28-2006 at 12:35 AM
RE: [Question] Messenger Plus! Commands - by Spunky on 10-28-2006 at 07:42 AM
RE: [Question] Messenger Plus! Commands - by Plan-1130 on 10-29-2006 at 02:08 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