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

Can't Create a Window
Author: Message:
a0369
Junior Member
**

Avatar

Posts: 16
35 / Male / Flag
Joined: Oct 2004
O.P. Can't Create a Window
I followed the manual and even Copy and Pasted the code and it still will not create a window. I don't know why, it just won't do it no matter what I do.

Script:

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

function OnEvent_Uninitialize(MessengerExit)
{

}


Here's the XML file and yes it's the correct filename

code:
<Interfaces xmlns="urn:msgplus:interface" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi: schemaLocation="urn:msgplus:interface 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>


I downloaded the manual for MsgPlus yesterday so it should be current. Also, other scripts can display windows, but none of mine will. It processes the script, but anything dealing with Windows will not work.
09-15-2007 02:20 PM
Profile PM Web Find Quote Report
Flash
Junior Member
**

Avatar
All time Ready

Posts: 86
Reputation: 2
44 / Male / Flag
Joined: Aug 2006
RE: Can't Create a Window
What the programm u use for edit xml file?
(i think is a bad encoding format)
My script: Psdp
09-15-2007 02:40 PM
Profile PM Find Quote Report
a0369
Junior Member
**

Avatar

Posts: 16
35 / Male / Flag
Joined: Oct 2004
O.P. RE: Can't Create a Window
editplus
09-15-2007 02:41 PM
Profile PM Web Find Quote Report
roflmao456
Skinning Contest Winner
****

Avatar

Posts: 955
Reputation: 24
30 / Male / Flag
Joined: Nov 2006
Status: Away
RE: Can't Create a Window
open in notepad and
save the file encoded as Unicode and then try again.

This post was edited on 09-15-2007 at 02:44 PM by roflmao456.
[quote]
Ultimatess6
: What a noob mod
09-15-2007 02:42 PM
Profile PM Web Find Quote Report
NanaFreak
Scripting Contest Winner
*****


Posts: 1476
Reputation: 53
32 / Male / Flag
Joined: Jul 2006
RE: Can't Create a Window
you need to save as unicode 16 (sometimes its called UCS-2 Little Endian)
09-15-2007 02:47 PM
Profile PM Find Quote Report
a0369
Junior Member
**

Avatar

Posts: 16
35 / Male / Flag
Joined: Oct 2004
O.P. RE: Can't Create a Window
ok i did that now it comes up, thanks for the help
09-15-2007 02:49 PM
Profile 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