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

Invalid command?
Author: Message:
roflmao456
Skinning Contest Winner
****

Avatar

Posts: 955
Reputation: 24
29 / Male / Flag
Joined: Nov 2006
Status: Away
RE: Invalid command?
try posting your code here and we'll see + fix errors.


the code for adding your commands (my way :tongue:):
code:
function OnGetScriptCommands(){
var SC = "<ScriptCommands>";
SC += "<Command>";
SC += "<Name>Your_Command</Name>";
SC += "<Description>Your description.</Description>";
// SC += "<Parameters>Optional. uncomment this if you want</Parameters>";
SC += "</Command>";

SC += "</ScriptCommands>";
return SC;
}

// to parse.
function OnEvent_ChatWndSendMessage(ChatWnd, Message){
if(Message.toLowerCase() == "/your_command"){
/* if(Message.length <= 13){ // for getting the parameter
return "/me";
}
*/

/* do something here */

return ""
}
}


This post was edited on 05-13-2007 at 10:51 PM by roflmao456.
[quote]
Ultimatess6
: What a noob mod
05-13-2007 10:47 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Invalid command? - by hidendra on 05-13-2007 at 09:52 PM
RE: Invalid command? - by roflmao456 on 05-13-2007 at 10:47 PM
RE: Invalid command? - by hidendra on 05-13-2007 at 10:58 PM
RE: Invalid command? - by Matti on 05-14-2007 at 03:35 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