Shoutbox

Who you're chatting too - 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: Who you're chatting too (/showthread.php?tid=14664)

Who you're chatting too by Dempsey on 08-19-2003 at 01:44 PM

How can i find out the email address of the prson im chatting to, to use in a plugin?  Is there a tag etc?


RE: Who you're chatting too by Kryptonate on 08-19-2003 at 01:47 PM

the emailadress is right next to their nickname right above the conversation :undecided:.


RE: Who you're chatting too by Dempsey on 08-19-2003 at 01:51 PM

Yea i know that, but i want to be able to get the email address to use as a variable in a plugin.


RE: Who you're chatting too by Mnjul on 08-19-2003 at 01:58 PM

in Parse command/tag function, you get a object of ConversationWindow...you can use its property "Contacts" ...that contains all the contants in the conversation. For detail I think you have to look into Messenger API:)


RE: Who you're chatting too by Predatory Kangaroo on 08-19-2003 at 03:23 PM

oConversationWindow.Contacts.Item(0).Property(1)
that will get the first user in the conversation's e-mail address (there are different ways, but that is the most foolproof).
change the parameter in Item(n) to change which user you get the e-mail of.


RE: Who you're chatting too by Hah on 08-19-2003 at 04:08 PM

Could this code do the job, it gets each contact and adds it to sresult? In ParseCommand or maybe as a tag?

Hah

code:
   
On Error GoTo EH
    Dim MSNCont As IMessengerContact
   
    If (StrComp(LCase(sCommand), "/xconvppl", vbTextCompare) = 0) Then
   sResult = "Contacts: "
    For Each MSNCont In oConversationWnd.Contacts
    sResult = sResult + " " + MSNCont.SigninName
    Next
    ParseCommand = True
    Exit Function
    End If
    ParseCommand = False
    Exit Function
EH:
    MsgBox Err.Description, vbOKOnly, Err.Number
Exit Function


RE: Who you're chatting too by Hah on 08-19-2003 at 04:57 PM

Here you go, i got bored so i made a working plugin and source (VB) with that code in to see it working its attached in the installer below.

It will install the source to the plugin directory of plus, so if u have any projects in there already, please move them before you install it, otherwise its simple.

Thanks

Hah


RE: Who you're chatting too by chris on 08-20-2003 at 04:47 PM

is thins going to be added to another plugin or were you just bored and making a simple plugin?


RE: RE: Who you're chatting too by Hah on 08-20-2003 at 06:58 PM

quote:
Originally posted by hereyougo420
is thins going to be added to another plugin or were you just bored and making a simple plugin?


It twas to help Dempsey, thats all, I was bored so thought I would help, the plugin was just to show a working example of the code.