What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Script Help....

Script Help....
Author: Message:
nokturnal
New Member
*

Avatar

Posts: 4
– / Male / –
Joined: Jul 2006
O.P. Script Help....
Hey guys,

First off I have to apologize for this stupid question and I hope I don't get yelled at too badly, but I just can't get it working.

I am attempting to do the 'Window Test' tutorial in the scripting documentation and can't seem to get the CreateWnd method to work.

Here is the code:

Window Test.js
code:
function OnEvent_Initialize(MessengerStart) {
    var Wnd = MsgPlus.CreateWnd("InterfaceTest.xml", "WndTest");
}

InterfaceTest.xml
code:
<Interfaces xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <Window Id="WndTest" Version="1">
        <Attributes>
            <Caption>Test Window</Caption>
        </Attributes>
        <TitleBar>
            <Title>
                <Text>Hello!</Text>
            </Title>
        </TitleBar>
        <Position Width="180" Height="75"/>
        <DialogTmpl/>
        <Controls>
            <Control xsi:type="StaticControl" Id="LblTop">
                <Position Left="10" Top="10" Width="150"/>
                <Caption>Hello world!</Caption>
            </Control>
            <Control xsi:type="ButtonControl" Id="BtnClose">
                <Position Left="112" Top="25" Width="50"/>
                <Caption>Close</Caption>
            </Control>
        </Controls>
    </Window>
</Interfaces>


The files are in the same directory inside c:/../../Messenger Plus! Live/Scripts/Window Test/

Debug window says:

Script is starting
Script is now loaded and ready
Function called: OnEvent_Initialize

... and no window :)

I have MessengerPlus! Live 4.0.0.235 with MSN 8.0.0792.00

Any idea's?
07-05-2006 08:42 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Script Help.... - by nokturnal on 07-05-2006 at 08:42 PM
RE: Script Help.... - by pollolibredegrasa on 07-05-2006 at 08:48 PM
RE: Script Help.... - by Silentdragon on 07-05-2006 at 08:48 PM
RE: Script Help.... - by NiteMare on 07-05-2006 at 08:50 PM
RE: Script Help.... - by BstrdSmkr on 07-05-2006 at 08:51 PM
RE: Script Help.... - by L. Coyote on 07-05-2006 at 09:00 PM
RE: Script Help.... - by foaly on 07-05-2006 at 09:13 PM
RE: Script Help.... - by nokturnal on 07-05-2006 at 09:21 PM


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