Shoutbox

Checking who is in a conversation - 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)
+----- Thread: Checking who is in a conversation (/showthread.php?tid=66156)

Checking who is in a conversation by Robin4286 on 09-12-2006 at 11:49 PM

Is there a way to check who is in a conversation using scripts?

By conversation I mean 2 or more people


RE: Checking who is in a conversation by Voldemort on 09-12-2006 at 11:50 PM

in a conversation you are having?
in a conversation from another contact?not possible


RE: Checking who is in a conversation by Robin4286 on 09-12-2006 at 11:52 PM

In a conversation you are having

EX

There is a conversation with me, Bob, and Joe,  is there a way i can use a script to do something like check to see who is there, then return it in 2 toast windows?


RE: Checking who is in a conversation by deAd on 09-12-2006 at 11:58 PM

You can find their email addresses or nicknames (or anything else within the Contact object) with the Iterator object of the ChatWnd.Contacts object.

There is an example of using this object in the documentation, available on the main site (or in the script editor).


RE: Checking who is in a conversation by Robin4286 on 09-13-2006 at 12:09 AM

im not quite sure i am getting it.


Can anyone explain this in a little more detail?


RE: Checking who is in a conversation by Shondoit on 09-13-2006 at 06:20 AM

This is right from the scripting documentation...
The only thing you need is a reference to a window and loop through it

code:
//Get the contacts of the conversation
var Contacts = ChatWnd.Contacts
//Start looping through all the contacts
//An Enumerator is an object which contains a list of the thing you pass to it
//Then 'moveNext' through the list while it's not at the end

for(var e = new Enumerator(Contacts); !e.atEnd(); e.moveNext())
{
                //Then you get the current item from that list
                var Contact = e.item()
                //And print the Email, or whatever you want...
                Debug.Trace(Contact.Email)
}

RE: Checking who is in a conversation by CookieRevised on 09-13-2006 at 10:07 AM

All that and more in great detail in the official scripting documentation. As with all things, search forum first, read docs first ;)