Shoutbox

[need help] How do i make a splash with XML engine? - 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: [need help] How do i make a splash with XML engine? (/showthread.php?tid=67593)

[need help] How do i make a splash with XML engine? by Cradenburg on 10-23-2006 at 05:30 PM

Well... I'm trying to make a splash, but with the current xml code, it dosent seem to work :(...

code:
<Interfaces xmlns="urn:msgplus:interface" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:msgplus:interface PlusInterface.xsd">
    <Window Id="abt" Version="1">

    <Position Width="419" Height="284"/>   

    <Elements>
    <Element xsi:type="Image" Id="Background">
        <Position Top="0" Left="0" Width="419" Height="284"/>
        <Name>splash</Name>
        <Format>PNG</Format>
    </Element>
    </Elements>

    </window>
</Interfaces>

And I call it like this:     
code:
var WndAbt = MsgPlus.CreateWnd("splash.xml", "Abt");

Please advice me as to what I should do to rectify this, I tried searching for splash but nothing came out. Is it possible to make windowless images in Messenger Plus?
RE: [need help] How do i make a splash with XML engine? by Ezra on 10-23-2006 at 05:32 PM

I'm not sure if the xml code is correct, but make sure you save it as UTF-16 Long Endian

EDIT: Notepad++ calls the correct format UCS-2 Little Endian, windows Notepad just calls it Unicode.


RE: [need help] How do i make a splash with XML engine? by Matti on 10-23-2006 at 05:40 PM

quote:
Originally posted by Ezra
UTF-16 Long Endian
I thought XML files for Plus! Live should always be saved as Unicode, no?
quote:
Originally posted by Cradenburg

Please advice me as to what I should do to rectify this, I tried searching for splash but nothing came out. Is it possible to make windowless images in Messenger Plus?
Yes! :)
code:
    <Window Id="abt" Version="1">
    <WindowTmpl>
        <Corners Shape="Rectangular"/>
        <Borders Type="None"/>
    </WindowTmpl>

    <Position Width="419" Height="284"/>

That will set the window to have rectangular corners (if you want to keep round corners, just remove that line) and to have no borders. ;)
RE: [need help] How do i make a splash with XML engine? by Silentdragon on 10-23-2006 at 09:13 PM

UTF-16 Long Endian is Unicode
UTF-16/UCS-2


RE: [need help] How do i make a splash with XML engine? by Cradenburg on 10-24-2006 at 10:00 AM

thanks


RE: [need help] How do i make a splash with XML engine? by phalanxii on 10-24-2006 at 10:44 AM

Perhaps check:

code:
<Window Id="abt" Version="1">
and
code:
var WndAbt = MsgPlus.CreateWnd("splash.xml", "Abt");
Not sure if case-sensitivity matters, but I would assume so.