creat window - 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: creat window (/showthread.php?tid=82797) creat window by desithugg on 03-30-2008 at 01:03 AM
Hi well i'm just starting out with scripting and i'm having some trouble creating a window. I followed the Scripting documentation but it doesn't seem to be working. code: and here's the script code: I placed the xml file in the script directory, but it doesn't work. By the way the toast does show. RE: creat window by NanaFreak on 03-30-2008 at 01:10 AM var Wnd = MsgPlus.CreateWnd("saad.xml", "WndTest"); RE: creat window by MeEtc on 03-30-2008 at 01:10 AM
In the JS code you wrote, you're not opening the window that you wrote above in the XML. code:That needs to be changed to "WndTest", the same as the Id name you gave it in the XML. RE: creat window by desithugg on 03-30-2008 at 01:13 AM
ohh got it, thanks! RE: creat window by CookieRevised on 03-30-2008 at 02:07 AM
Make sure you have saved the XML as a unicode file and that it is placed in the script's directory. RE: creat window by desithugg on 03-30-2008 at 02:17 AM Hey thanks, that was the problem. I had it saved as ANSI, thanks a lot. Was going crazy over that. I can finally do something now. RE: creat window by hitokiri_3 on 04-13-2008 at 10:37 PM
hello, RE: RE: creat window by desithugg on 04-13-2008 at 10:43 PM
quote:Hey umm try this open notepad, copy your xml code in there and click File > Save As enter the file name and than where it says encoding select unicode RE: creat window by Matti on 04-14-2008 at 04:27 PM
I've quickly installed ConTEXT (looks like a pretty neat editor ), and after a quick search, I found the option to set the save format:
RE: creat window by hitokiri_3 on 04-14-2008 at 07:20 PM thank,it's easy and ok with the notepad . |