Shoutbox

<SOLVED> Script interface "problem" - 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: WLM Plus! Help (/forumdisplay.php?fid=12)
+----- Thread: <SOLVED> Script interface "problem" (/showthread.php?tid=88295)

<SOLVED> Script interface "problem" by Fr4sbokz on 01-11-2009 at 02:21 PM

Hello.
I'm kinda new to Scripting in MP!L, and I need some help with... the Interface. :)

Well. I took a peek in the Scripting Documentiation, and I found the chapter about Interface, or 'Windows for your script'!
I tried to follow the instructions to make the Tutorial interface (Hello World!), but it just refuses to work.

First, I copied all the stuff in the codebox, pasted in Notepad(2), saved it to my Script's folder (Windows Test), and named it InterfaceTest.xml.

Then, I wrote

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


exactly as it said, saved the script... But no, no window came up after the Debugging window said 'Anropad funktion: OnEvent_Initialize' (Swedish. xD)

I get no error messages or anything, but still no window. >:
Also, Im using WLM2009 (1202) and MP!L 4.79.0.353 Beta!

Please help me with this nooby error, and I'll delete the thread. <3

EDIT: I forgot to mention that other scripts interface work. <_<
RE: Script interface "problem" by matty on 01-11-2009 at 02:30 PM

You need to save the file as Unicode not ANSI it is an option at the bottom of Notepad when saving a file.


RE: RE: Script interface "problem" by Fr4sbokz on 01-11-2009 at 02:40 PM

quote:
Originally posted by matty
You need to save the file as Unicode not ANSI it is an option at the bottom of Notepad when saving a file.

That worked! Thanks! :D

Really, you should add this to the helpfile or something. >:
RE: Script interface "problem" by matty on 01-11-2009 at 04:41 PM

Agreed, however this has been brought up before on the forums and a little searching would have revealed the answer ;).