hello
i was writing my script and when i go to the menu and click on my script nothing appends
and it was to open the windows.xml
here is the code
script:
code:
var test = '';
function OnEvent_Signin(Email)
{
if(Email == "zeroonnet@internetskill.net")
{
var Message = "Hello Master " + Messenger.MyName + "!";
Message = MsgPlus.RemoveFormatCodes(Message);
MsgPlus.DisplayToast("", Message);
}
}
function OnGetScriptMenu(){
var ScriptMenu = "<ScriptMenu>";
ScriptMenu += "<MenuEntry Id='zerotools'>";
ScriptMenu += "zeroonnet tools";
ScriptMenu += "</MenuEntry>";
ScriptMenu += "</ScriptMenu>";
return ScriptMenu;
}
function OnEvent_MenuClicked(sMenuId){
if(sMenuId == "zerotools") {test = MsgPlus.CreateWnd("windows.xml","zerotools");}
}
function OnzerotoolsEvent_CtrlClicked(PlusWnd, ControlId){
if(ControlId == "fechar") {PlusWnd.Close(1);}
}
windows.xml
code:
<Interfaces xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Window Id="zerotools" Version="0.5">
<Attributes>
<Caption>zerotools</Caption>
<SetForeground>True</SetForeground>
<TopMost>true</TopMost>
</Attributes>
<Position Width="150" Height="100"/>
<WindowTmpl>
<Corners Shape="Round">
<RoundSize>3</RoundSize>
</Corners>
<Borders Type="Dialog"/>
</WindowTmpl>
<Controls>
<Control xsi:type="ButtonControl" Id="fechar">
<Position Left="50" Top="50" Width="20" Height="10"/>
<Caption>Fechar</Caption>
</Control>
</Controls>
</Window>
</Interfaces>
wher is the error?
sorry my bad bad english but i am portuguese
and sorry if the error is stupid but this is my first script