What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [help] - Check # of contacts, and close

[help] - Check # of contacts, and close
Author: Message:
Cpsgames
New Member
*

Avatar

Posts: 2
– / – / Flag
Joined: Jul 2008
O.P. [help] - Check # of contacts, and close
I'm working on a bot, but i'm stuck on somthing.

I need to know how to check how many contacts are in a conversation when a window is created and if there is more than 1 (and yourself) to close the window.

Comments and help is appreciated, thanks

Chris~

This post was edited on 07-12-2008 at 06:31 AM by Cpsgames.
[Image: userbar.png]
Cpsgames.net - An online game developement community. You can post submit your games/examples/wips, write blogs, and more!
07-12-2008 06:30 AM
Profile E-Mail PM Web Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: [help] - Check # of contacts, and close
This is very basic scripting knowledge and thus the answer and many details can easly be found in the Official Scripting Documentation if you browse the different functions and objects a little. (click the link or simply choose Help in the Script Editor).

It is not that we don't wanna help you, but as I said, this is such a basic question that you'll find your answer quickly if you read the documentation.
.-= A 'frrrrrrrituurrr' for Wacky =-.
07-12-2008 06:50 AM
Profile PM Find Quote Report
Cpsgames
New Member
*

Avatar

Posts: 2
– / – / Flag
Joined: Jul 2008
O.P. RE: [help] - Check # of contacts, and close
I searched all over the documentation and I can't find it.

Sorry if i'm just missing something thats right in my face, but could you just show me a sample strip of code of what i'm trying to do?

This post was edited on 07-12-2008 at 10:33 PM by Cpsgames.
[Image: userbar.png]
Cpsgames.net - An online game developement community. You can post submit your games/examples/wips, write blogs, and more!
07-12-2008 10:31 PM
Profile E-Mail PM Web Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: [help] - Check # of contacts, and close
code:
function OnEvent_ChatWndCreated ( pChatWnd ) {

}

That is fired when a chat window is opened.
The pChatWnd object has a Contacts property.

Now if you look at the Scripting documentation that CookieRevised directed you to you will notice that under the Objects Reference there is a Contacts object listed. If you look through the properties of that object you should see the property you want to use.

By us just telling you the code you will never learn. But following those directions you should be able to easily find your answer.

This post was edited on 07-12-2008 at 10:41 PM by matty.
07-12-2008 10:41 PM
Profile E-Mail 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