Shoutbox

Window creation help! - 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: Window creation help! (/showthread.php?tid=97106)

Window creation help! by Fike on 03-18-2011 at 07:13 PM

OK, so I'm making a new script. The script is meant to open a window when /syshelp is executed in a chat window with commands etc.

I have my XML file saved (Unicode, notepad). It's just the example window, I'll modify it later on. When I did /syshelp, it didn't do anything.

Main JS: http://www.pastie.org/private/sfw6addqwlvpgtirazuwja
XML: http://www.pastie.org/private/if8folgxd9kqbpvl03rvxa

Could someone please direct me? thanks :)


RE: Window creation help! by pollolibredegrasa on 03-18-2011 at 07:24 PM

You've named your window "TestWnd" but are trying to show "WndTest" :P

XML code:
<Window Id="TestWnd" Version="1">

Javascript code:
MsgPlus.CreateWnd("Windows.xml", "WndTest");


RE: RE: Window creation help! by Fike on 03-18-2011 at 07:33 PM

quote:
Originally posted by pollolibredegrasa
You've named your window "TestWnd" but are trying to show "WndTest" :P

XML code:
<Window Id="TestWnd" Version="1">

Javascript code:
MsgPlus.CreateWnd("Windows.xml", "WndTest");



Changed it, that wasn't the only problem. There's something else :/
RE: Window creation help! by pollolibredegrasa on 03-18-2011 at 07:59 PM

Hm, your code works here and the window shows. Double check your encoding is definitely Unicode, and that your XML file is called "Windows.xml" (as referenced by your script).

If you haven't already, you could also download the Interface Tester program (linked to in the Scripting Docs under "Testing your Windows") and try opening the window in that. If the window opens then the XML is fine and the problem lies elsewhere.

If you've checked all of the above and it still doesn't work, post back here. I cant think of anything else that could cause it, but someone else may have some further ideas :)


RE: Window creation help! by Fike on 03-18-2011 at 08:06 PM

I've tried changing the name of the XML and the window (reflected changes in the script) AND IT STILL DOESN'T WORK :'(

Interface Tester doesn't work on Plus! 5.


RE: Window creation help! by matty on 03-18-2011 at 08:07 PM

quote:
Originally posted by Fike
I've tried changing the name of the XML and the window (reflected changes in the script) AND IT STILL DOESN'T WORK :'(

Interface Tester doesn't work on Plus! 5.
As for the Interface Tester there is a new version that works with Plus! 5 available on the site.
RE: Window creation help! by Fike on 03-18-2011 at 08:08 PM

oh ok, i'll install it then :)