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>.
|