Shoutbox

Messenger Plus! 2.20.48 - IMPROVE your plugins! - 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: Messenger Plus! 2.20.48 - IMPROVE your plugins! (/showthread.php?tid=12537)

Messenger Plus! 2.20.48 - IMPROVE your plugins! by Patchou on 07-08-2003 at 04:18 AM

Hello,

my proxy server is currently being updated but I couldn't wait to give to this little developer community the new Messenger Plus! beta.

There are two improvements (I worked all day long on them). The first one is a new parameter in the ReceiveNotify() function (which forces you to modify your plugin if you want it to continue to work). This parameter gives you the name of the contact who sent a notification code. This can be very handy.

The second improvement is a big one. It won't allow you to make a more powerful plugin but it will help you make it more usable. The new PublishInfo() function (3 for VB) allows you to tell Messenger Plus! about the name of your plugin, its commands and its tags. All this information will be displayed in the new Plus!\Plugins menu in the chat windows.

I'm counting on you to test all this as much as possible as the final public release is coming in 6 days and the plugin support has to work perfectly if you want your creations to be a success.

Messenger Plus! 2.20.48: http://files.msgplus.net/beta/PlusBeta2045.exe (do not redistribute this link, it will be changed in a couple of hours)
Updated API documentation: http://files.msgplus.net/data/MPPlugins.zip

Hope you'll enjoy!
Patchou


RE: Messenger Plus! 2.20.48 - Improve your plugins! by mey32 on 07-08-2003 at 04:20 AM

nice work Patchou ;)


RE: Messenger Plus! 2.20.48 - IMPROVE your plugins! by surfichris on 07-08-2003 at 04:22 AM

yay! Patchou added my suggestion about the contact name :D


RE: Messenger Plus! 2.20.48 - IMPROVE your plugins! by Patchou on 07-08-2003 at 05:51 AM

of course :)


RE: Messenger Plus! 2.20.48 - IMPROVE your plugins! by Misterjad on 07-08-2003 at 06:50 AM

as usual you are the best ;)


RE: RE: Messenger Plus! 2.20.48 - IMPROVE your plugins! by Chr!s on 07-08-2003 at 07:09 AM

quote:
Originally posted by Chris Boulton
yay! Patchou added my suggestion about the contact name :D


My Borland Builder 6 gives the following error:

struct PLUGIN_PARAM
{
    IDispatch *iConversationWnd;
    const char sContactName[512];
};
E2232 Constant member 'PLUGIN_PARAM::SContactName'in class without constructors.

The previous version of the sample plug-in worked fine, because this feature wasn't omplemented yet, but now it won't work with Borland Builder??? :(

RE: Messenger Plus! 2.20.48 - IMPROVE your plugins! by Predatory Kangaroo on 07-08-2003 at 07:12 AM

perfect :D


RE: Messenger Plus! 2.20.48 - IMPROVE your plugins! by Patchou on 07-08-2003 at 07:59 AM

Chr!s : I understand why your compile says that so I just fixed it (removed the const).


RE: RE: Messenger Plus! 2.20.48 - IMPROVE your plugins! by Chr!s on 07-08-2003 at 08:20 AM

quote:
Originally posted by Patchou
Chr!s : I understand why your compile says that so I just fixed it (removed the const).


Ok. It now works fine!! I  didn't know the consequenses of removing the const, but I think you do ;)
RE: Messenger Plus! 2.20.48 - IMPROVE your plugins! by loconet on 07-08-2003 at 12:04 PM

Why not use the contact's e-mail instead of/as well as the name? Since the e-mail is more unique than the name, it could be used for things such as custom bans/ignores,encryption keys management, etc?

again, Great work


RE: Messenger Plus! 2.20.48 - IMPROVE your plugins! by allex87 on 07-08-2003 at 01:15 PM

u can get the email from the PluginParam struct, using the iConversationWnd COM interface.


RE: RE: Messenger Plus! 2.20.48 - IMPROVE your plugins! by loconet on 07-08-2003 at 01:35 PM

quote:
Originally posted by allex87
u can get the email from the PluginParam struct, using the iConversationWnd COM interface.


The contact's e-mail? awsome, thanks. :)
RE: Messenger Plus! 2.20.48 - IMPROVE your plugins! by allex87 on 07-08-2003 at 03:21 PM

That is not the contact's email, that is a COM interface... try this:
http://www.msnfanatic.be/forums/index.php?showtopic=5799

It shows the basics of using the Messenger API in c++. They also have it in VB...


RE: Messenger Plus! 2.20.48 - IMPROVE your plugins! by Patchou on 07-08-2003 at 05:16 PM

You can get the email of the contacts in the chat from the MessengerConversationWnd object :)


RE: Messenger Plus! 2.20.48 - IMPROVE your plugins! by Finn on 07-08-2003 at 06:25 PM

what do i need to do to get the plugin to show in the plugins menu?

i have added this

MPPLUGIN_RETURN_BOOL PublishInfo(/*[out]*/ char *sPluginName,
                                 /*[out]*/ PLUGIN_PUBLISH_LIST* aCommands,
                                 /*[out]*/ PLUGIN_PUBLISH_LIST* aTags)
{

    strcpy(sPluginName, "XFade V1.0 By Finn");
    aCommands->nCount = 3;
    strcpy(aCommands->sName[0], "Help");
    strcpy(aCommands->sValue[0], "XFade");
    strcpy(aCommands->sName[1], "Random Fade");
    strcpy(aCommands->sValue[1], "XRFade");
    strcpy(aCommands->sName[2], "Multiple Fade");
    strcpy(aCommands->sValue[2], "XNFade");
    aTags->nCount = 0;

    return TRUE;
}


but still the plugin menu is greyed out :S


RE: Messenger Plus! 2.20.48 - IMPROVE your plugins! by cxd on 07-08-2003 at 06:45 PM

Patchou:

I beleive there's a problem with the Initialization function (I tried in VB only). I was just looking around the stuff and I wanted to try that function so I added this command: msgbox sUserMail
to your sample vb class and recompiled, reloaded and the msgbox worked in fact but msn didn't log in. I cancelled log in and tried again without restarting msn and then it worked fine.
Next, I erased the command I added and recompiled, reloaded and then it worked allright.

I beleive there's something to do with calling msgboxes from the initialize. I will try more commands and post again..



RE: Messenger Plus! 2.20.48 - IMPROVE your plugins! by Hypnolinth on 07-08-2003 at 07:00 PM

Nice work Patchou, can't thank u enough :bow:


RE: Messenger Plus! 2.20.48 - IMPROVE your plugins! by BrYcE on 07-08-2003 at 09:48 PM

Great Job as always Patchou!!!


RE: Messenger Plus! 2.20.48 - IMPROVE your plugins! by Patchou on 07-08-2003 at 11:50 PM

cxd: I think the problem is only that you must not block the thread using a message box during dignin. You can do it to do a test but dont be surprized if Messenger refuses to login :).

Finn: my guess is that you forgot to update the def file of your project so the PublishInfo function is not exported correctly.

Patchou


RE: Messenger Plus! 2.20.48 - IMPROVE your plugins! by Pr0xY on 07-09-2003 at 02:58 AM

why does the file say 2.20.45?


RE: Messenger Plus! 2.20.48 - IMPROVE your plugins! by NiSiS on 07-09-2003 at 04:01 AM

letīs program ;)


RE: RE: Messenger Plus! 2.20.48 - IMPROVE your plugins! by Finn on 07-09-2003 at 07:06 AM

quote:
Originally posted by Patchou
cxd: I think the problem is only that you must not block the thread using a message box during dignin. You can do it to do a test but dont be surprized if Messenger refuses to login :).

Finn: my guess is that you forgot to update the def file of your project so the PublishInfo function is not exported correctly.

Patchou


okay its started working now, i think it might have been a problem with it only updating if you restart msn, not if you send the plugin event to reload..
RE: Messenger Plus! 2.20.48 - IMPROVE your plugins! by Tandy on 07-09-2003 at 08:10 AM

Nice job Patchou


RE: Messenger Plus! 2.20.48 - IMPROVE your plugins! by Mike on 07-09-2003 at 10:14 AM

What are the new fetures?
And what are the bug fixes?


RE: Messenger Plus! 2.20.48 - IMPROVE your plugins! by jonas on 07-09-2003 at 11:10 AM

Patchou you most help me !!!

I am from Belgium and i speak dutch !!

Do you have transulations for Messenger Plus! 2.20.48 ???

I want Messenger Plus! 2.20.48 Dutch !!!

Please help me ??


Jonas


RE: Messenger Plus! 2.20.48 - IMPROVE your plugins! by Sypher on 07-09-2003 at 11:11 AM

Jonas, They are coming soon :)
Binnenkort dus :)