What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Building a GUI?

Building a GUI?
Author: Message:
Zero
Junior Member
**

Avatar

Posts: 29
– / Male / Flag
Joined: Aug 2008
O.P. Building a GUI?
Basically I want to try exactly what the subject suggests - create  a standard         graphical user     interface with buttons, editboxes, context menu's, etc. for my JScript/MPL app.

Currently, my understanding is that there are two ways of doing this:

   1. Create an ActiveX Control in your compiler that you then declare & create an instance of in your JScript. Presumably you'd compile a DLL?
   2. Use JScript .NET and create a Windows Form (somehow).

I'm also aware of a tool specifically for MPL that allows you to specify a GUI in XML. I tried it out, it sucked quite badly (but was pre-beta I believe), and so haven't revisited it since.

Does anyone know if there are any other options?

  -Zero
12-03-2008 05:46 PM
Profile E-Mail PM Web Find Quote Report
Chris4
Elite Member
*****

Avatar

Posts: 4461
Reputation: 84
33 / Male / Flag
Joined: Dec 2004
RE: Building a GUI?
I think this is what you're looking for.
Twitter: @ChrisLozeau
12-03-2008 06:18 PM
Profile PM Find Quote Report
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
32 / Male / Flag
Joined: Apr 2004
RE: Building a GUI?
Interfaces in Messenger Plus! Live can be defined in XML files by using the Plus! Interfaces XML scheme, as documented in the Plus! Live Scripting Documentation. You can then create such a window with MsgPlus.CreateWnd and use the returned PlusWnd object to do all sorts of stuff and respond to window events.

This infrastructure was made so Plus! scripts could share a similar window design, so it's highly recommended to create your windows this way rather than creating it through lots of Win32 API code or ActiveX objects. ;)

If you're unsure how to make such windows, have a look at some scripts made by other developers and see how it's done. :)
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
12-03-2008 06:42 PM
Profile E-Mail PM Web Find Quote Report
Zero
Junior Member
**

Avatar

Posts: 29
– / Male / Flag
Joined: Aug 2008
O.P. RE: Building a GUI?
I was aware of that documentation already but was interested in something (an app or a scripting interface) that would either 1) generate the XML for me or 2) create an ActiveX control or Windows Form.

I would prefer to not rely on 3rd party tools like MPL's XML infrastructure or an external app that does the job. Ideally, it'd be great to be able to stick with WSH wherever possible, although I realize that in this case it may not be possible.

Any other tips?
12-03-2008 07:51 PM
Profile E-Mail PM Web Find Quote Report
NanaFreak
Scripting Contest Winner
*****


Posts: 1476
Reputation: 53
32 / Male / Flag
Joined: Jul 2006
RE: Building a GUI?
MP!L's interface is really good. use it.

it will be much easier than using all the activex and that... because plus has built in functions to interact with the interface...
12-03-2008 11:18 PM
Profile PM Find Quote Report
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
32 / Male / Flag
Joined: Apr 2004
RE: Building a GUI?
quote:
Originally posted by Zero
I would prefer to not rely on 3rd party tools like MPL's XML infrastructure or an external app that does the job.
Messenger Plus! Live's XML interfaces infrastructure is not a third party tool when you are programming a Messenger Plus! Live script!

That's like saying: "I'm building a website but I don't want to do my design in HTML." The scripts you make are already using the infrastructure delivered by Messenger Plus! Live, so why would you refrain from using other parts of that same infrastructure? Also, if I follow your thinking process: why would you use any of the provided infrastructure at all? Why wouldn't you simply write the hooking procedure in C++ yourself to interact with Messenger? Would that make your result better?

Sure, it'd be a lot more interesting if we could have a designer tool for this, but is that a reason not to use XML? Do you have any idea what a huge task it is to define your own window classes, create your own windows, manually add every control to it and control the whole thing all by yourself?

Seriously, there's nothing wrong with using Plus! Live's interfaces XML when making a Plus! Live script. It was made to make things lots easier for script developers, which is why we have much more developers making magnificent scripts compared to the days where this was done through a Plus! plug-in DLL where you still had to do almost everything yourself regarding interfaces.
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
12-04-2008 12:48 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