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

creat window
Author: Message:
desithugg
New Member
*


Posts: 4
– / Male / Flag
Joined: Mar 2008
O.P. creat window
Hi well i'm just starting out with scripting and i'm having some trouble creating a window. I followed the Scripting documentation but it doesn't seem to be working.

Here's the xml window code (name: saad.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 ClientWidth="170" ClientHeight="45"/>
        <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="115" Top="25" Width="50"/>                <Caption>Close</Caption>
            </Control>
        </Controls>
    </Window>
</Interfaces>

and here's the script
code:
function OnEvent_Initialize(MessengerStart){
    var Wnd = MsgPlus.CreateWnd("saad.xml", "form1");
    MsgPlus.DisplayToast("testing","testing...");
}

I placed the xml file in the script directory, but it doesn't work. By the way the toast does show.
03-30-2008 01:03 AM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
creat window - by desithugg on 03-30-2008 at 01:03 AM
RE: creat window - by NanaFreak on 03-30-2008 at 01:10 AM
RE: creat window - by MeEtc on 03-30-2008 at 01:10 AM
RE: creat window - by desithugg on 03-30-2008 at 01:13 AM
RE: creat window - by CookieRevised on 03-30-2008 at 02:07 AM
RE: creat window - by desithugg on 03-30-2008 at 02:17 AM
RE: creat window - by hitokiri_3 on 04-13-2008 at 10:37 PM
RE: RE: creat window - by desithugg on 04-13-2008 at 10:43 PM
RE: creat window - by Matti on 04-14-2008 at 04:27 PM
RE: creat window - by hitokiri_3 on 04-14-2008 at 07:20 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