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

Help creating windows
Author: Message:
brwarner
New Member
*


Posts: 10
Joined: Feb 2006
O.P. Help creating windows
Here is my Interface.xml file:
<Interfaces xmlns="urn:msgplus:interface" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:msgplus:interface
C:\PROGRA~1\MESSEN~2\Scripts\PlusInterface.xsd">
    <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>
Here is my Script:
function OnEvent_Initialize(MessangerStart)
{
    var Wnd = MsgPlus.CreateWnd("Interface.xml","WndTest");
}
When I run it nothing happens, when I replace the Interface.xml with another file from someone elses script and change the window IDs the window opens... I need help. Note that the file is called Interface.xml
07-29-2006 03:35 PM
Profile E-Mail PM Find Quote Report
Menthix
forum admin
*******

Avatar

Posts: 5537
Reputation: 102
40 / Male / Flag
Joined: Mar 2002
RE: Help creating windows
I remember something with a simluar problem. Believe you have to save the .xml files as Unicode. Can someone confirm?
Finish the problem
Menthix.net | Contact Me
07-29-2006 03:40 PM
Profile E-Mail PM Web Find Quote Report
pollolibredegrasa
Full Member
***

Avatar
formerly fatfreechicken

Posts: 483
Reputation: 34
35 / Male / Flag
Joined: May 2005
RE: Help creating windows
Yes, when you save the XML, you must save it as unicode or the window will not appear.

This post was edited on 07-29-2006 at 03:43 PM by pollolibredegrasa.
;p

[Image: chickennana.gif] Vaccy is my thin twin! [Image: chickennana.gif]
07-29-2006 03:42 PM
Profile PM Find Quote Report
brwarner
New Member
*


Posts: 10
Joined: Feb 2006
O.P. RE: Help creating windows
Thank you ! It works now :)
07-29-2006 03:45 PM
Profile E-Mail PM Find Quote Report
Felu
Veteran Member
*****


Posts: 2223
Reputation: 72
30 / Male / Flag
Joined: Apr 2006
Status: Away
RE: Help creating windows
I made a window for you which is better than yous. I hope that helps.

Edit : Opps! Im late but this is a better example of a window :).

.zip File Attachment: Interface.zip (730 bytes)
This file has been downloaded 136 time(s).

This post was edited on 07-29-2006 at 03:47 PM by Felu.
07-29-2006 03:46 PM
Profile E-Mail PM Web 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