Shoutbox

Retrieve who the user is chatting with? - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Forum: Plug-Ins (/forumdisplay.php?fid=28)
+------ Thread: Retrieve who the user is chatting with? (/showthread.php?tid=38628)

Retrieve who the user is chatting with? by SWINX on 02-16-2005 at 11:38 PM

When I'm in a conversation, I want my plugin to know who the other user is (email address), if this is possible with the API for VB6?

Thanx.


RE: Retrieve who the user is chatting with? by Joel4119 on 02-17-2005 at 12:30 AM

Just hover your mouse over their display picture.


RE: Retrieve who the user is chatting with? by matty on 02-17-2005 at 12:36 AM

It is not possible with the API of Plus!. What you would have to do is use the oMessenger object passed through Initialize and try and get the open convos there and see who the person is chatting with. I will edit my post if I think of a way to do it.


quote:
Originally posted by Joel4119
Just hover your mouse over their display picture.
Also this has nothing to do with the question. He is trying to make a program not see what the title of the window is.
RE: Retrieve who the user is chatting with? by Joel4119 on 02-17-2005 at 04:24 AM

Haha, sorry. I didn't understand the question.


RE: Retrieve who the user is chatting with? by Dempsey on 02-17-2005 at 10:54 AM

i can't remember exactly, but i think you want something like:

code:
Set MSN = New oMessenger
    Dim iContact As MessengerAPI.IMessengerContact
    Dim iConv As MessengerAPI.IMessengerConversationWnd
   
    For Each iContact In iConv.Contacts
        MsgBox iContact.SigninName
    Next

RE: Retrieve who the user is chatting with? by SWINX on 02-17-2005 at 11:04 AM

Thanks for your reply. I'll test it and get back to you guys.


RE: RE: Retrieve who the user is chatting with? by SWINX on 02-17-2005 at 06:57 PM

I can succesfully create a Messenger object with:

code:
Set oMessenger = New MessengerAPI.Messenger

I can succesfully show MyFriendlyName in a MsgBox

I try to use these stuff in the ParseCommand function.

But I can't get the Contacts-code from above working...
MSN+ stops when I try to do this:

code:
        Dim iContact As MessengerAPI.iMessengerContact
        Dim iConv As MessengerAPI.IMessengerConversationWnd

and then says there is no such MSN+ function supported.

I also don't see the codes like iMessengerContact in the dropdownlist as element of MessengerAPI when I'm coding...
Does someone know how I can fix this?
RE: Retrieve who the user is chatting with? by SWINX on 02-17-2005 at 11:22 PM

after I added this on the top of my class module, the MessageContact part worked...

code:
Private Declare Function PostMessage Lib "user32" Alias "PostMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long

private const WM_USER = &10