What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Checking who is in a conversation

Checking who is in a conversation
Author: Message:
Robin4286
Junior Member
**


Posts: 21
Joined: Sep 2006
O.P. Checking who is in a conversation
Is there a way to check who is in a conversation using scripts?

By conversation I mean 2 or more people
09-12-2006 11:49 PM
Profile E-Mail PM Find Quote Report
Voldemort
Veteran Member
*****

Avatar

Posts: 3504
Reputation: 49
– / – / Flag
Joined: Jul 2005
Status: Away
RE: Checking who is in a conversation
in a conversation you are having?
in a conversation from another contact?not possible
*All posts are a purely speculative hypothesis based on abstract reasoning.
Not my daughter, you bitch!
[Image: ico-mollytrix16.gif]
09-12-2006 11:50 PM
Profile E-Mail PM Find Quote Report
Robin4286
Junior Member
**


Posts: 21
Joined: Sep 2006
O.P. RE: Checking who is in a conversation
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?
09-12-2006 11:52 PM
Profile E-Mail PM Find Quote Report
deAd
Scripting Contest Winner
*****

Avatar

Posts: 1060
Reputation: 28
– / Male / Flag
Joined: Jan 2006
RE: Checking who is in a conversation
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).

This post was edited on 09-12-2006 at 11:59 PM by deAd.
09-12-2006 11:58 PM
Profile PM Find Quote Report
Robin4286
Junior Member
**


Posts: 21
Joined: Sep 2006
O.P. RE: Checking who is in a conversation
im not quite sure i am getting it.


Can anyone explain this in a little more detail?
09-13-2006 12:09 AM
Profile E-Mail PM Find Quote Report
Shondoit
Full Member
***

Avatar
Hmm, Just Me...

Posts: 227
Reputation: 15
36 / Male / Flag
Joined: Jul 2006
RE: Checking who is in a conversation
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)
}

This post was edited on 09-13-2006 at 06:22 AM by Shondoit.
My scripts:                            [Image: shondoit.gif]
+ Timezone
+ Camelo
+ Multisearch
09-13-2006 06:20 AM
Profile PM Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: Checking who is in a conversation
All that and more in great detail in the official scripting documentation. As with all things, search forum first, read docs first ;)
.-= A 'frrrrrrrituurrr' for Wacky =-.
09-13-2006 10:07 AM
Profile PM Find Quote Report
« 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