Shoutbox

MSN or Windows Messenger? - 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: MSN or Windows Messenger? (/showthread.php?tid=52166)

MSN or Windows Messenger? by eSouL on 10-24-2005 at 02:43 PM

Hi,

Is there a way to detect what is the messenger client the user is running?

My plugin places an icon below MsgPlus!'s sound icon if the user is using MSN Messenger, and don't do anything if he is using the other (since MsgPlus! do not place any icons on the toolbar in this client).

Thanks in advance!


RE: MSN or Windows Messenger? by Dempsey on 10-24-2005 at 02:52 PM

u can found out using the Messenger API, passed in Initalise.


RE: MSN or Windows Messenger? by Mike on 10-24-2005 at 03:02 PM

Also, the user might have disabled the toolbar (where it shows the messenger plus! icon and the sound icon) even if he/she uses MSN Messenger, so you better find a way to see if the toolbar is disabled. :)

A bit offtopic: Are you using SetParent API to do it?
Can I see a screenshot of it, I'm just curious :)


RE: MSN or Windows Messenger? by eSouL on 10-24-2005 at 03:24 PM

Dempsey, how?

As far as I know, nVersion only returns the level of support of MsgPlus!

Mike, yes, I'm using SetParent API. VB6 can't seem to subclass a window not owned by itself. :( If anybody knows a workaround please let me know. And also, how do I check if the user has diabled toolbar?

A screenshot..

[Image: attachment.php?pid=555070]


RE: MSN or Windows Messenger? by matty on 10-24-2005 at 03:30 PM

quote:
Originally posted by eSouL
And also, how do I check if the user has diabled toolbar?


HKEY_CURRENT_USER\Software\Patchou\MsgPlus2\%email%\Preferences\InstantMessagesPlusIcon

DWORD Key
0 = Disabled
1 = Enabled

And yes you can subclass the window in VB and watch for WM_Paint.