Hooking the Messenger Main Window - Printable Version -Shoutbox (https://shoutbox.menthix.net) +-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58) +--- Forum: Skype & Technology (/forumdisplay.php?fid=9) +---- Forum: Skype & Live Messenger (/forumdisplay.php?fid=10) +----- Thread: Hooking the Messenger Main Window (/showthread.php?tid=49222) Hooking the Messenger Main Window by RaceProUK on 08-20-2005 at 11:13 AM
I've tried the obvious (Windows CBT hook), but even the HCBT_ACTIVATE doesn't seem to be triggered when the contact list is shown. I know a CBT hook would work if I had an EXE running before Messenger, but I'm writing a plugin, so all windows have already been created. RE: Hooking the Messenger Main Window by Stigmata on 08-20-2005 at 11:40 AM
Ive done this before, and plus is what is stopping you.. RE: Hooking the Messenger Main Window by absorbation on 08-20-2005 at 11:42 AM does'nt mdx now add the menu? well e-mail patchou would be the best way RE: Hooking the Messenger Main Window by Dempsey on 08-20-2005 at 12:02 PM TazDevil monitors windows created by the msnmsgr.exe process and then compares each window to the main window hwnd returned from the messenger api and if theres a match, its the main window so then you can do what you want with it. RE: Hooking the Messenger Main Window by RaceProUK on 08-20-2005 at 12:32 PM So I guess TazDevil uses some form of API hooking? RE: Hooking the Messenger Main Window by Dempsey on 08-20-2005 at 12:34 PM i assume so yes i'm not actually sure. try pming him cos he's no online atm RE: Hooking the Messenger Main Window by RaceProUK on 08-24-2005 at 02:32 PM Strange no-one else has posted anything yet. RE: Hooking the Messenger Main Window by TazDevil on 08-24-2005 at 04:24 PM
Hi Dempsey just pm'ed me about this issue... RE: Hooking the Messenger Main Window by RaceProUK on 08-24-2005 at 05:38 PM
Thanks Demps for PMing TazDevil, and thanks TazDevil for the info. I did have the hook looking for HCBT_ACTIVATE, but I was then doing stuff with window class names. Had I thought to compare HWNDs, I'd have sorted this problem already. RE: Hooking the Messenger Main Window by TazDevil on 08-24-2005 at 05:48 PM
quote:Happy to be of some help No adding to the menu will not cause any problems, and it it quite easy to do as well you just GetMenu(hwnd) and just add menus with InsterMenuItem() etc, then catch WM_COMMAND messages sent/posted to the contact list window proc.... that is all about it RE: Hooking the Messenger Main Window by RaceProUK on 08-24-2005 at 06:52 PM
I've done menu stuff before, in Phoenix 2 |