What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » A few questions.

A few questions.
Author: Message:
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
31 / Male / Flag
Joined: Apr 2004
RE: RE: A few questions.
quote:
Originally posted by CookieRevised
This works perfectly for a Plus! window which you can subclass in Plus!, but does this also work for any other window (eg: a conversation window, as that is what he is asking) which you can not subclass in Plus! scripting?

A very long time ago (before SSS), I did the same: A quick 'n dirty rough test showed that creating (and even showing the context menu) worked fine, but there was no way to detect a click because you couldn't subclass the window which would receive the clicked menu IDs (I tested this on the main contact list iirc).

At least, that was a long time ago without too much looking into it (it was a very quick test), and as far as I can remember so I dunno...
Indeed, you need a subclass window to receive those notifications, but I believe this can be done using a simple Plus! window created solely for that purpose. In Screenshot Sender 5, we use the following interface:
XML code:
<Window Id="Subclass" Version="1">
    <Attributes><ShowInTaskbar>false</ShowInTaskbar></Attributes>
    <Position Width="0" Height="0"/>
    <DialogTmpl/>
</Window>

When the popup menu has to be opened, we create the subclass window (if not already created) and pass its handle as hWnd. As MSDN puts it: this window receives all messages from the menu. Therefore, it should not make any difference whether the menu was opened because of an event in a chat window or in a Plus! window or any other source. There's no need to subclass the chat window itself, any window will do, including Plus! windows.
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
05-03-2010 04:02 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
A few questions. - by Emblem on 05-02-2010 at 03:29 AM
RE: A few questions. - by Matti on 05-02-2010 at 08:33 AM
RE: A few questions. - by CookieRevised on 05-03-2010 at 11:00 AM
RE: RE: A few questions. - by Matti on 05-03-2010 at 04:02 PM
RE: A few questions. - by CookieRevised on 05-04-2010 at 05:05 PM
RE: A few questions. - by Matti on 05-04-2010 at 06:15 PM
RE: A few questions. - by CookieRevised on 05-04-2010 at 06:32 PM
RE: A few questions. - by Eljay on 05-04-2010 at 06:51 PM
RE: A few questions. - by CookieRevised on 05-04-2010 at 07:01 PM
RE: A few questions. - by Eljay on 05-04-2010 at 07:47 PM
RE: A few questions. - by CookieRevised on 05-04-2010 at 08:03 PM
RE: RE: A few questions. - by TheSteve on 05-05-2010 at 07:29 AM
RE: A few questions. - by Eljay on 05-04-2010 at 10:14 PM
RE: A few questions. - by CookieRevised on 05-04-2010 at 11:27 PM
RE: A few questions. - by Eljay on 05-05-2010 at 08:41 AM
RE: A few questions. - by Mnjul on 05-05-2010 at 08:50 AM
RE: A few questions. - by CookieRevised on 05-06-2010 at 01:04 AM
RE: A few questions. - by Mnjul on 05-06-2010 at 06:49 AM
RE: A few questions. - by Eljay on 05-06-2010 at 07:25 AM
RE: A few questions. - by Emblem on 05-17-2010 at 05:07 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