Shoutbox

help with interfaces - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: help with interfaces (/showthread.php?tid=68875)

help with interfaces by liquidfluid on 11-26-2006 at 02:45 PM

I'm trying to use windows im my script but I cannot even manage to start =(
Infact this script makes nothing! where is my error?

script:

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

test.xml (located in the script's folder):
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>Prova!</Caption>
      </Attributes>
      <TitleBar>
         <Title><Text>Hello!</Text></Title>
      </TitleBar>
      <Position Width="180" Height="75"/>
      <DialogTmpl/>
      <Controls>
         <Control xsi:type="ButtonControl" Id="BtnClose">
            <Position Left="112" Top="25" Width="50"/>
            <Caption>Close</Caption>
         </Control>
      </Controls>
   </Window>
</Interfaces>

thanks
RE: help with interfaces by Dempsey on 11-26-2006 at 02:47 PM

Is the Window File definatley saved as unicode?


RE: help with interfaces by liquidfluid on 11-26-2006 at 02:57 PM

no it was saved in ANSI (damned notepad) ... I tried unicode just now and it worked! thank you! (i didn't know that would cause a problem o.O)