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

Window creation help!
Author: Message:
Fike
Junior Member
**

Avatar
I make scripts.

Posts: 63
– / Male / Flag
Joined: Mar 2011
O.P. Dodgy  Window creation help!
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 :)
03-18-2011 07:13 PM
Profile E-Mail PM Web Find Quote Report
pollolibredegrasa
Full Member
***

Avatar
formerly fatfreechicken

Posts: 483
Reputation: 34
35 / Male / Flag
Joined: May 2005
RE: Window creation help!
You've named your window "TestWnd" but are trying to show "WndTest" :P

xml code:
<Window Id="TestWnd" Version="1">
js code:
MsgPlus.CreateWnd("Windows.xml", "WndTest");

This post was edited on 03-18-2011 at 07:26 PM by pollolibredegrasa.
;p

[Image: chickennana.gif] Vaccy is my thin twin! [Image: chickennana.gif]
03-18-2011 07:24 PM
Profile PM Find Quote Report
Fike
Junior Member
**

Avatar
I make scripts.

Posts: 63
– / Male / Flag
Joined: Mar 2011
O.P. RE: RE: Window creation help!
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">
js code:
MsgPlus.CreateWnd("Windows.xml", "WndTest");


Changed it, that wasn't the only problem. There's something else :/
03-18-2011 07:33 PM
Profile E-Mail PM Web Find Quote Report
pollolibredegrasa
Full Member
***

Avatar
formerly fatfreechicken

Posts: 483
Reputation: 34
35 / Male / Flag
Joined: May 2005
RE: Window creation help!
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 :)
;p

[Image: chickennana.gif] Vaccy is my thin twin! [Image: chickennana.gif]
03-18-2011 07:59 PM
Profile PM Find Quote Report
Fike
Junior Member
**

Avatar
I make scripts.

Posts: 63
– / Male / Flag
Joined: Mar 2011
O.P. RE: Window creation help!
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.
03-18-2011 08:06 PM
Profile E-Mail PM Web Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Window creation help!
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.
03-18-2011 08:07 PM
Profile E-Mail PM Find Quote Report
Fike
Junior Member
**

Avatar
I make scripts.

Posts: 63
– / Male / Flag
Joined: Mar 2011
O.P. RE: Window creation help!
oh ok, i'll install it then :)
03-18-2011 08:08 PM
Profile E-Mail 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