What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » How to use <Parameters>

How to use <Parameters>
Author: Message:
johny65
New Member
*

Avatar
~777~

Posts: 7
36 / Male / Flag
Joined: Jul 2007
O.P. How to use <Parameters>
Hello everybody! Well, I'm new here and in this of MP! Scripts. So I hope you help me, jajaja.

I want to know how to use <Parameters> in the event OnGetScriptCommands(). MsgPlus! documentation has the following example:

"<Parameters>&lt;flash count&gt;</Parameters>";

but I don't understand what is "&lt;flash count&gt;".

I hope you help!
Thanks! ;)
07-27-2007 06:39 AM
Profile PM Web Find Quote Report
Mnjul
forum super mod
******

Avatar
plz wub me

Posts: 5396
Reputation: 58
– / Other / Flag
Joined: Nov 2002
Status: Away
RE: How to use <Parameters>
It's the text shown right to your command in the Enter Text area if your user selects your command in the command explorer (the one that pops up when you press / )

In xml, &lt; represents < while &gt; represents > literally (to distinguish those symbols from the markup tags)
07-27-2007 12:40 PM
Profile PM Web Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: How to use <Parameters>
It is a little hard to explain but when you select the command from the drop down (once you type /) it will display the parameter.

For instance

/command <flash count>

function OnEvent_ChatWndSendMessage(oChatWnd, sMessage){
    if (/^\/([^\s\/]+)\s*([\s\S]*)$/.exec(sMessage) !== null) {
        var Command = RegExp.$1.toLowerCase();
        var Param = RegExp.$2;
}

Using that function will split the message into 2 variables, Command and Param.

If you Debug.Trace(Param) you will see that it is <flash count>.
07-27-2007 12:49 PM
Profile E-Mail PM Find Quote Report
johny65
New Member
*

Avatar
~777~

Posts: 7
36 / Male / Flag
Joined: Jul 2007
O.P. RE: How to use <Parameters>
I have solved my problem.
Thank you very much!
07-28-2007 02:15 AM
Profile PM Web 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