What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Plug-Ins » Getting a handle to the conversation HWND...

Pages: (2): « First [ 1 ] 2 » Last »
Getting a handle to the conversation HWND...
Author: Message:
allex87
Junior Member
**

Avatar
Hmmm...

Posts: 99
36 / Male / –
Joined: Jul 2003
O.P. Sad  Getting a handle to the conversation HWND...
I am trying to get the HWND to the conversation window.. here's what I do...


PLUGIN_PARAM plParam;
IMessengerWindow *pIMessengerWindow = NULL;

plParam.iConversationWnd->QueryInterface(IID_IMessengerConversationWnd, (void **)&pIMessengerWindow);


It stops at the last line... :( the same method worked for the iMessengerObj in the Initialize() function.. I did:
iMessengerObj->QueryInterface(IID_IMessenger, (void **)&pIMessenger);

Is there anything I do wrong?
Thanks.
[Image: signature.gif]
07-09-2003 01:53 PM
Profile E-Mail PM Web Find Quote Report
allex87
Junior Member
**

Avatar
Hmmm...

Posts: 99
36 / Male / –
Joined: Jul 2003
O.P. RE: Getting a handle to the conversation HWND...
Haha.. that's clever... thx a lot...
[Image: signature.gif]
07-09-2003 03:24 PM
Profile E-Mail PM Web Find Quote Report
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
RE: Getting a handle to the conversation HWND...
quote:
Originally posted by allex87
I am trying to get the HWND to the conversation window.. here's what I do...


PLUGIN_PARAM plParam;
IMessengerWindow *pIMessengerWindow = NULL;

plParam.iConversationWnd->QueryInterface(IID_IMessengerConversationWnd, (void **)&pIMessengerWindow);


It stops at the last line... :( the same method worked for the iMessengerObj in the Initialize() function.. I did:
iMessengerObj->QueryInterface(IID_IMessenger, (void **)&pIMessenger);

Is there anything I do wrong?
Thanks.
I know it's been a short while since this has been read, but I can tell you what you've done wrong... you've used a NULL pointer to point to the interface returned. At least, I think this is what's causing it.
[Image: spartaafk.png]
07-12-2004 05:52 PM
Profile PM Web Find Quote Report
Mnjul
forum super mod
******

Avatar
plz wub me

Posts: 5396
Reputation: 58
– / Other / Flag
Joined: Nov 2002
Status: Away
RE: Getting a handle to the conversation HWND...
It's not very proper to bring up such a one-year-old thread...:S

I think

IMessengerWindow *pIMessengerWindow = NULL;


This should be

IMessengerConversationWnd *pIMessengerWindow = NULL;


As you are retrieving Conversation Window ;)
07-12-2004 06:14 PM
Profile PM Web Find Quote Report
CMI
Junior Member
**


Posts: 17
Joined: Jul 2004
RE: Getting a handle to the conversation HWND...
I think something is just plain wrong, as I can't get this to work in Visual Basic. Everything is null... Is it safe to say that MSN Messenger 6.2 3rd party development should just be halted as it makes people insane?
07-13-2004 12:24 AM
Profile E-Mail PM Find Quote Report
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
RE: Getting a handle to the conversation HWND...
It isn't safe to say, as that would include Plus.
If you want CMI, you can PM me your code, and I can have a look. A fresh mind may spot what is wrong.
[Image: spartaafk.png]
07-13-2004 09:58 AM
Profile PM Web Find Quote Report
Dempsey
Scripting Contest Winner
*****

Avatar
http://AdamDempsey.net

Posts: 2395
Reputation: 53
37 / Male / Flag
Joined: Jul 2003
RE: Getting a handle to the conversation HWND...
CMI getting a handle to the conversation HWND in VB is easy!

code:
hMSN = FindWindow("IMWindowClass", vbNullString)

This post was edited on 07-13-2004 at 10:19 AM by Dempsey.
SoundPacks   -   Scripts   -   Skins

that's not a bug, thats an unexpected feature
07-13-2004 10:19 AM
Profile E-Mail PM Web Find Quote Report
CMI
Junior Member
**


Posts: 17
Joined: Jul 2004
RE: RE: Getting a handle to the conversation HWND...
quote:
Originally posted by Dempsey
CMI getting a handle to the conversation HWND in VB is easy!

code:
hMSN = FindWindow("IMWindowClass", vbNullString)


Whos to say there isn't more than one IM window open? I have no choice now but to find via friendly name I suppose, but people can have identical friendly names as well.
07-13-2004 05:36 PM
Profile E-Mail PM Find Quote Report
Dempsey
Scripting Contest Winner
*****

Avatar
http://AdamDempsey.net

Posts: 2395
Reputation: 53
37 / Male / Flag
Joined: Jul 2003
RE: Getting a handle to the conversation HWND...
i thought u just wanted to get the current conversation
SoundPacks   -   Scripts   -   Skins

that's not a bug, thats an unexpected feature
07-13-2004 06:04 PM
Profile E-Mail PM Web Find Quote Report
Millenium_edition
Veteran Member
*****

Avatar

Posts: 1787
Reputation: 57
Joined: Apr 2003
RE: Getting a handle to the conversation HWND...
CMI: use enumwindows?
07-13-2004 07:52 PM
Profile E-Mail PM Find Quote Report
Pages: (2): « First [ 1 ] 2 » Last »
« 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