What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [?] Events for Plus Interface Windows

[?] Events for Plus Interface Windows
Author: Message:
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
36 / Male / Flag
Joined: Aug 2006
O.P. [?] Events for Plus Interface Windows
Basically, I want to add a textbox to one of MP!Ls own Windows and then when a button is clicked, do stuff. Is it possible to hook messages being sent so that I can do this?
<Eljay> "Problems encountered: shit blew up" :zippy:
01-23-2008 06:50 PM
Profile PM Find Quote Report
vikke
Senior Member
****

Avatar

Posts: 900
Reputation: 28
31 / Male / Flag
Joined: May 2006
RE: [?] Events for Plus Interface Windows
It's possible, but you would need some way to hook the window. The scripting doesn't support Win32 hook callbacks. If you know C++ you could create your own DLL, and apply the hooks from there.

Basically, just create the button with the MP!L window as parent. Then you replace the WNDPROC (it's called subclassing) with your own (don't forget to call the other WNDPROCs in the chain!). In your WNDPROC-callback, check either for BM_CLICK or BM_CLICKED depending on what window (the MP!L window, or your button's window) you're subclassing.
More information on that message here: http://msdn2.microsoft.com/en-us/library/bb775985.aspx
More information on subclassing (replacing the WNDPROC):
http://msdn2.microsoft.com/en-us/library/ms633570(VS.85).aspx

If you need more help, I can help you out on Messenger if you give me your address. :)
01-23-2008 07:09 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »


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