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

help with my script
Author: Message:
lammerzor
New Member
*


Posts: 3
Joined: Feb 2007
O.P. help with my script
hello

i was writing my script and when i go to the menu and click on my script nothing appends :S 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 :D and sorry if the error is stupid but this is my first script :D
02-03-2007 12:27 AM
Profile E-Mail PM Find Quote Report
roflmao456
Skinning Contest Winner
****

Avatar

Posts: 955
Reputation: 24
30 / Male / Flag
Joined: Nov 2006
Status: Away
RE: help with my script
make sure windows.xml is saved as UTF-16/Unicode (16)
[quote]
Ultimatess6
: What a noob mod
02-03-2007 01:25 AM
Profile PM Web Find Quote Report
lammerzor
New Member
*


Posts: 3
Joined: Feb 2007
O.P. RE: help with my script
i use this program to save (Stylus Studio 2007 XML Enterprise Suite) and i use that 2 programs that are in you signature...

what program shold i use to save in UTF-16/Unicode?

:D it's working now :D thanks for help :D

This post was edited on 02-04-2007 at 01:31 AM by WDZ.
02-03-2007 01:54 AM
Profile E-Mail PM Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: help with my script
quote:
Originally posted by lammerzor
what program shold i use to save in UTF-16/Unicode?
Any program which supports unicode, eg: Notepad.

----------------------

Also:
quote:
Originally posted by lammerzor
<Window Id="zerotools" Version="0.5">

'Version' is NOT your script version! It must be the version number of the scripting interface. Which is either 1 or 2, depending on what stuff you used in the interface.

Consult the official scripting documentation before (and also during!) scripting.


----------------------

PS: try not to double post. If you have anything to add to a thread and nobody replied to it yet (you have the last post) then [Image: edit.gif] your post instead.

This post was edited on 02-04-2007 at 01:30 AM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
02-04-2007 01:26 AM
Profile 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