What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [REQUEST] How to create a window

Pages: (2): « First [ 1 ] 2 » Last »
[REQUEST] How to create a window
Author: Message:
PaulE
Junior Member
**


Posts: 28
Joined: Jul 2006
O.P. Huh?  [REQUEST] How to create a window
Hi,

This is my first Thread here, so i hope you gyz can read this :P
I am form The Netherlands so i dont think all that shit like here is right English.. :P

Enough talked, lets come to the point.
I want to create a window like this:

[Image: windowrn4.png]

But i dont know how...

I want that when i do '/showconfig' i get a window like that.
And then i want to edit my config for my script in that window.

I hope this is possible, and can help me with this...

Greetings,
Paul

This post was edited on 07-25-2006 at 09:40 AM by PaulE.
07-24-2006 03:38 PM
Profile PM Find Quote Report
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
RE: [REQUEST] How to create a window
quote:
Originally posted by PaulE
Enough talked
You mean 'enough said' [Image: msn_tongue.gif] Other than that, your English is good.

With Plus! scripts, windows are written in a dialect of XML. It's fully documented in the scripting documentation.
[Image: spartaafk.png]
07-24-2006 04:01 PM
Profile PM Web Find Quote Report
PaulE
Junior Member
**


Posts: 28
Joined: Jul 2006
O.P. RE: RE: [REQUEST] How to create a window
quote:
Originally posted by RaceProUK
quote:
Originally posted by PaulE
Enough talked
You mean 'enough said' [Image: msn_tongue.gif] Other than that, your English is good.

With Plus! scripts, windows are written in a dialect of XML. It's fully documented in the scripting documentation.


Hehe ;)

Yes, i saw that but that is not enough informatie for me to create a window like that only a window with Hello Wolrd! in it ;)
07-24-2006 04:02 PM
Profile PM Find Quote Report
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
RE: [REQUEST] How to create a window
It is enough information: you just have to make 2+2=5 [Image: msn_wink.gif] Just start off by experimenting. Write something you think will create a dialog with a control or two, and see if it works. If it does, cool. If it doesn't, read the docs and see what you did wrong.

Before you know it, you'll be coding windows in your sleep [Image: msn_wink.gif]
[Image: spartaafk.png]
07-24-2006 04:06 PM
Profile PM Web Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: [REQUEST] How to create a window
quote:
Originally posted by RaceProUK
It is enough information: you just have to make 2+2=5 [Image: msn_wink.gif] Just start off by experimenting. Write something you think will create a dialog with a control or two, and see if it works. If it does, cool. If it doesn't, read the docs and see what you did wrong.

Before you know it, you'll be coding windows in your sleep [Image: msn_wink.gif]
You know it might be good to provide examples.

Matty's reply to Cannot CreateChildWnd
07-24-2006 04:17 PM
Profile E-Mail PM Find Quote Report
PaulE
Junior Member
**


Posts: 28
Joined: Jul 2006
O.P. RE: RE: [REQUEST] How to create a window
Look i got this at now:
code:
var WndExample;
var WndChildExample;

    function OnGetScriptMenu(nLocation){
        var sMenu = "<ScriptMenu>";
        sMenu += "    <MenuEntry Id=\"mnuExample\">Example</MenuEntry>";
        sMenu += "</ScriptMenu>";
        return sMenu;
    }
   
    function OnEvent_MenuClicked(sMenuId, nLocation, ChatWnd){
        if(sMenuId == "mnuExample"){

                                  /*
                                    Open up header
                                  */

                                  WindowOpend [ 0 ] = MsgPlus.CreateWnd( 'gui.xmll', 'Header' );

                                  /*
                                    Open inside parent, child SideBar
                                  */

                                  WindowOpend [ 1 ] = MsgPlus.CreateChildWnd( WindowOpend [ 0 ], 'gui.xml', 'SideBar', 9, 94, true );

                                  /*
                                    Open inside parent, child Main
                                  */

                                  WindowOpend [ 2 ] = MsgPlus.CreateChildWnd( WindowOpend [ 0 ], 'gui.xml', 'Main', 180, 113, true );
                                 
                                  /*
                                    Open inside parent, child Main
                                  */
                                 
                                  WindowOpend [ 3 ] = MsgPlus.CreateChildWnd( WindowOpend [ 0 ], 'gui.xml', 'Footer', 0, 0, true );
        }
    }

It is a part of a Robot script..

This xml file is with it:
http://www.webso.nl/msn/gui.xml (Just look in the source:$)

When i want to open the Example file, nothing happens :$

This post was edited on 07-24-2006 at 04:55 PM by PaulE.
07-24-2006 04:37 PM
Profile PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: [REQUEST] How to create a window
Is your XML file saved as unicode?

quote:
Originally posted by PaulE

code:
    /*
        Open up header
    */

    WindowOpend [ 0 ] = MsgPlus.CreateWnd( 'gui.xmll', 'Header' );


should be only 1 letter l in the filename.

This post was edited on 07-24-2006 at 05:10 PM by matty.
07-24-2006 05:07 PM
Profile E-Mail PM Find Quote Report
PaulE
Junior Member
**


Posts: 28
Joined: Jul 2006
O.P. RE: RE: [REQUEST] How to create a window
quote:
Originally posted by Matty
Is your XML file saved as unicode?

quote:
Originally posted by PaulE

code:
    /*
        Open up header
    */

    WindowOpend [ 0 ] = MsgPlus.CreateWnd( 'gui.xmll', 'Header' );


should be only 1 letter l in the filename.


Sorry read your post wrong ;)

This post was edited on 07-24-2006 at 05:15 PM by PaulE.
07-24-2006 05:11 PM
Profile PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: [REQUEST] How to create a window
quote:
Originally posted by PaulE
Sorry read your post wrong ;)

When you try and load your XML file you get this error

quote:
Originally posted by http://www.webso.nl/msn/gui.xml
The XML page cannot be displayed
Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.


--------------------------------------------------------------------------------

Switch from current encoding to specified encoding not supported. Error processing resource 'http://www.webso.nl/msn/gui.xml'. Line 1, Position 40

<?xml version="1.0" encoding="UTF-16"?>
07-24-2006 05:16 PM
Profile E-Mail PM Find Quote Report
PaulE
Junior Member
**


Posts: 28
Joined: Jul 2006
O.P. RE: RE: [REQUEST] How to create a window
quote:
Originally posted by Matty
quote:
Originally posted by PaulE
Sorry read your post wrong ;)

When you try and load your XML file you get this error

quote:
Originally posted by http://www.webso.nl/msn/gui.xml
The XML page cannot be displayed
Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.


--------------------------------------------------------------------------------

Switch from current encoding to specified encoding not supported. Error processing resource 'http://www.webso.nl/msn/gui.xml'. Line 1, Position 40

<?xml version="1.0" encoding="UTF-16"?>



I changed the file name but still nothing happend...
Could you make al litte preview like the MSG Plus! Live configurator for me? :$ I dont think you have time for it.. But i you have i realy like you :D
07-24-2006 05:20 PM
Profile PM Find Quote Report
Pages: (2): « First [ 1 ] 2 » Last »
« 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