quote:
Originally posted by Matti
quote:
Is there any way to display a right click menu? (Anywhere, not just on a Plus! Window.)
Sure, you can use CreatePopupMenu, populate it with menu items and then show it using TrackPopupMenu. I needed this functionality for one of my own scripts, so I made a nice wrapper class for it (see attachment). Just create a new Menu instance, use AddMenuItem() to add items and use Open() to pop it up somewhere on the screen.
This Menu class is taken straight from the current beta of Screenshot Sender 5, documentation is in the script file itself.
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...
quote:
Is it possible to find out what font settings the currently signed in user is using?
HKEY_CURRENT_USER\Software\Microsoft\MSNMessenger\PerPassportSettings\
<the MSNID of the user>\IM Format
However, this can not be changed on the fly. Messenger only checks this when opening or changing the font via its own UI (so I suppose you could maybe force it to reload or something by patching it in memory/invoking its internal routines or something. But that is not for the fainth of heart.)