What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Can't creating window.

Can't creating window.
Author: Message:
nekkro-kvlt
New Member
*


Posts: 7
Joined: Sep 2005
O.P. Can't creating window.
Hi all, I can't create window, but I'm sure I make it right.
I've created a new script called test.
I've created the file InterfaceTest.xml  in C:\Program Files\Messenger Plus! Live\Scripts\test which contains:

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>

Now, in my script, I've put:
code:
function OnEvent_Initialize(MessengerStart)
{
var Wnd = MsgPlus.CreateWnd("InterfaceTest.xml", "WndTest");
if(Wnd==null)
Debug.trace('null');
}

Exactly as the example said. I've added the null test cause no window open. On the debug, I see null, Which means that my window is not created, but why ?
Does somebody has an idea?  Thanks a lot.
11-12-2006 10:05 PM
Profile E-Mail PM Find Quote Report
Dempsey
Scripting Contest Winner
*****

Avatar
http://AdamDempsey.net

Posts: 2395
Reputation: 53
37 / Male / Flag
Joined: Jul 2003
RE: Can't creating window.
Is the window xml file saved as Unicode?  It needs to be.
SoundPacks   -   Scripts   -   Skins

that's not a bug, thats an unexpected feature
11-12-2006 10:08 PM
Profile E-Mail PM Web Find Quote Report
nekkro-kvlt
New Member
*


Posts: 7
Joined: Sep 2005
O.P. RE: Can't creating window.
Was that, big thanks !
11-12-2006 10:35 PM
Profile E-Mail 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