What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » script command error - "Command Requiers Parameter"

script command error - "Command Requiers Parameter"
Author: Message:
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: script command error - "Command Requiers Parameter"
I am at work so I can't test this but here you go.

code:
function OnEvent_ChatWndSendMessage(ChatWnd, Message) {
    var mCommand = new Array();
    mCommand = Message.split(' ');
   
    if (mCommand[0] == '/act'){
        Debug.Trace("Recognized");
        var nick = Messenger.MyName;
        var msg = '/me ';
        Messenger.MyName = mCommand[1];
        for (i = 2; i < mCommand.Length; i++) {
            msg += mCommand[i];
        }
        MsgPlus.AddTimer('restoreNick', 100);
        return msg;
    } else { Debug.Trace('Not Recognized'); }
}



quote:
Originally posted by billboy1001
code:
var msg = "/me";

This is your error right here

/ me requires a parameter. So the code must be:
quote:
Originally posted by billboy1001
code:
var msg = "/me ";


This post was edited on 10-23-2006 at 01:04 AM by matty.
10-23-2006 12:47 AM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
script command error - "Command Requiers Parameter" - by Baggins on 10-23-2006 at 12:17 AM
RE: script command error - "Command Requiers Parameter" - by deAd on 10-23-2006 at 12:24 AM
RE: script command error - "Command Requiers Parameter" - by Baggins on 10-23-2006 at 12:27 AM
RE: script command error - "Command Requiers Parameter" - by matty on 10-23-2006 at 12:47 AM
RE: script command error - "Command Requiers Parameter" - by Baggins on 10-23-2006 at 12:53 AM
RE: script command error - "Command Requiers Parameter" - by matty on 10-23-2006 at 12:57 AM
RE: script command error - "Command Requiers Parameter" - by deAd on 10-23-2006 at 01:31 AM
RE: script command error - "Command Requiers Parameter" - by CookieRevised on 10-23-2006 at 10:59 AM
RE: script command error - "Command Requiers Parameter" - by Baggins on 10-23-2006 at 08:30 PM
RE: script command error - "Command Requiers Parameter" - by foaly on 10-23-2006 at 08:35 PM
RE: script command error - "Command Requiers Parameter" - by CookieRevised on 10-23-2006 at 08:36 PM
RE: script command error - "Command Requiers Parameter" - by Baggins on 10-23-2006 at 09:00 PM
RE: RE: script command error - "Command Requiers Parameter" - by CookieRevised on 10-23-2006 at 09:24 PM
RE: RE: RE: script command error - "Command Requiers Parameter" - by Baggins on 10-23-2006 at 09:26 PM
RE: script command error - "Command Requiers Parameter" - by CookieRevised on 10-23-2006 at 09:14 PM
RE: RE: script command error - "Command Requiers Parameter" - by Baggins on 10-23-2006 at 09:21 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