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

Calling script with command
Author: Message:
bangwazoo
New Member
*


Posts: 2
Joined: Sep 2008
O.P. Calling script with command
I'm new to messenger plus! scripting, I have installed some scripts and have been able to call them by writing /... in a chat window. I have now started trying to write my own scripts, can anyone tell me how i can call a function by writing "/something" in a window?

Thanks
09-14-2008 08:33 PM
Profile E-Mail PM Find Quote Report
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
36 / Male / Flag
Joined: Aug 2006
RE: Calling script with command
CookieRevised's reply to Gettin data from "/" commands - Deciphering commands and parameters.

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

You also need the above code to add you commands to the "command helper" window when someone types a "/" in the conversation window. This is not essential, but makes your script easier to use and I think Menthix mentioned not accepting scripts of sub-standard quality (which a script without out this would be)
<Eljay> "Problems encountered: shit blew up" :zippy:
09-14-2008 10:35 PM
Profile PM Find Quote Report
bangwazoo
New Member
*


Posts: 2
Joined: Sep 2008
O.P. RE: Calling script with command
Thanks, that works great.
09-15-2008 04:34 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »


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