What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Plug-Ins » how to catch the MessengerPlus_DisplayToast in VB.NET or C#?

how to catch the MessengerPlus_DisplayToast in VB.NET or C#?
Author: Message:
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
RE: how to catch the MessengerPlus_DisplayToast in VB.NET or C#?
quote:
Originally posted by J-Thread
So you want to know when a plugin (or other program) calls the MessengerPlus_DisplayToast?

That will not be easy to do, especially not with C# or VB.NET. I'm quite sure it IS possible, but I don't exactly know how.

You will have to intercept the so called "Window Messages", then you'll have to find out if it was registered as "MessengerPlus_DisplayToast" and then you'll have to get the inputs back by translating the int's back to a string.

The function to do this is usually called "WndProc", you might try searching for that. Take a look at the "SetWindowsHook" function also.
It's actually really easy to catch MessengerPlus_DisplayToast. Just use SetWindowsHookEx, GetCurrentThreadId, and CallWndProc and/or GetMsgProc.
code:
int nMsg = RegisterWindowMessage("MessengerPlus_DisplayToast");
is a key line: use a line like this in your own plugin, and save the value of nMsg to use in your CallWndProc/GetMsgProc.

If you like, I can post sample C++. The C# will be very similar.
[Image: spartaafk.png]
06-03-2006 09:05 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
how to catch the MessengerPlus_DisplayToast in VB.NET or C#? - by guojivip on 06-02-2006 at 03:15 AM
RE: how to induce the MessengerPlus_DisplayToast in VB.NET or C# - by J-Thread on 06-02-2006 at 06:07 AM
RE: how to catch the MessengerPlus_DisplayToast in VB.NET or C# - by guojivip on 06-02-2006 at 07:08 AM
RE: how to catch the MessengerPlus_DisplayToast in VB.NET or C#? - by J-Thread on 06-02-2006 at 11:44 AM
RE: how to catch the MessengerPlus_DisplayToast in VB.NET or C#? - by guojivip on 06-02-2006 at 12:23 PM
RE: how to catch the MessengerPlus_DisplayToast in VB.NET or C#? - by RaceProUK on 06-03-2006 at 09:05 PM
RE: RE: how to catch the MessengerPlus_DisplayToast in VB.NET or C#? - by J-Thread on 06-05-2006 at 04:15 PM
RE: how to catch the MessengerPlus_DisplayToast in VB.NET or C#? - by RaceProUK on 06-06-2006 at 12:01 PM
RE: how to catch the MessengerPlus_DisplayToast in VB.NET or C#? - by J-Thread on 06-06-2006 at 03:17 PM
RE: how to catch the MessengerPlus_DisplayToast in VB.NET or C#? - by RaceProUK on 06-07-2006 at 02:16 PM


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