O.P. RE: script command
thank you for your answer, I already read documentation, but I do not arrive has to place this in a script :
function OnEvent_ChatWndSendMessage(ChatWnd, Message){
if(Message== '/toast'){
MsgPlus.DisplayToast("","Hello")
return '';
}
}
function OnGetScriptCommands (){
var commands = "<ScriptCommands>";
commands += " <Command>";
commands += " <Name>toast</Name>";
commands += " <Description>...</Description>";
commands += " </Command>";
commands += "</ScriptCommands>";
return commands;
}
|