Shoutbox

New Plugin API - 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)
+----- Forum: Plug-Ins (/forumdisplay.php?fid=28)
+------ Thread: New Plugin API (/showthread.php?tid=31623)

New Plugin API by Patchou on 09-17-2004 at 01:13 AM

Hello fellow developers,

I just finished to update the plugin API for Messenger Plus! 3.20 and I thought that you would like to see it now, before the new version is released.

For those who don't know already, the Plugin API package has been completely restructured to have a more "professional" feeling. Also, version 5 of the API (distributed with Plus!3.20) give you access to a new function: SetNewName(). I'm sure that many of you will be happy to know that you can now change the name of the current user with this function.

Finally, and I think this is the main reason why all of you should download this new API, I added a new, more advanced, sample for Visual C++ 7 and Visual Basic .NET (so get the package again if you downloaded it a few days ago). This new sample demonstrates how to use the Messenger API with the Messenger object sent during initialization (once again, you must NOT try to create a new Messenger object yourself, it will cause problems in your users's computers, including crashes).

The sample creates an event viewer, similar to the one featured in Messenger Plus! (actually, I copy/pasted some of the Messenger Plus! code in it). I'm sure there's a lot of things to learn for some of you in this sample so go ahead and check it out! The Messenger API (including its documentation) is also distributed in the package now, this will make things easier for everyone.

I really hope you will enjoy the new API. The download url has not changed so be sure to clean your cache before you get the new file: http://files.msgplus.net/data/MPPlugins.zip .

Let me know what you think about all that!
Patchou


RE: New Plugin API by Yousef on 09-17-2004 at 04:39 AM

Cool, I'll look at it this afternoon and think of some nice ideas :)

Edit: Man this is awesome! I'm starting some new plugins! :D:D


RE: New Plugin API by -dt- on 09-17-2004 at 09:55 AM

:( no advanced visual basic 6 ? spose ill have to start learning .net or c++  messenger plus 3.20 is going to rock :)


RE: New Plugin API by Patchou on 09-17-2004 at 07:24 PM

quote:
The Messenger Object isn't new, as you could already use it
True bust most people didn't know how to use it.

As for header files, it is true that I should havea #pragma once at the top, it's just that a good practice is to includethis kind of header file in the precompiled header or so you should never have a multiple defintion problem. I'll work on that this afternoon.

And for ATL...what did you expect? I'm not going to create all my buttons one by one with the API, we're not working in linux here, VC has a real development framework that's here to be used :p.
RE: New Plugin API by Martijn. on 09-17-2004 at 10:05 PM

OK, I just have to ask this:P:

Do the new API features work with the Scripting Host Plugin?

Yes, I'm still using that, and I still love it =).


RE: RE: New Plugin API by Martijn. on 09-17-2004 at 10:10 PM

quote:
Originally posted by TheBlasphemer
quote:
Originally posted by |\/|artij|\|
OK, I just have to ask this:P:

Do the new API features work with the Scripting Host Plugin?

Yes, I'm still using that, and I still love it =).

no, they won't, but I'm sure Hah or whomever is in charge of it will update it ;)

Ah well, lets hope for an update then:).
quote:
Originally posted by TheBlasphemer
if not I'd be willing to re-write a scripting host thing similar to it (hell, already got the code 50% prepared, was one of my ideas too, hah was just a bit faster :P)

Thanks:bow:.
RE: New Plugin API by Patchou on 09-17-2004 at 10:29 PM

The package has been updated again so please, re-download it (justblame TB for it :p). There are no change for VB developers, however,the C++ API has been broken in two of files so you'll have to include a new .cpp in your project to make it compatible.


RE: New Plugin API by Choli on 09-18-2004 at 12:39 AM

Very nice Patchou!
* Choli likes the new API, and all the examples. Very good ones.


RE: New Plugin API by Mnjul on 09-18-2004 at 02:29 AM

Err PatchouTB :@ (TB: well, Patchou told to blame you :P)

Now I have to again update all my plugins' source codes and make my custom modification :dodgy: I've done that a couple times this week :dodgy:

It's still great as a crispy, just-made-from-oven chicken =p