What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Current open convosations

Current open convosations
Author: Message:
fOme
New Member
*

bo0!

Posts: 6
– / Male / –
Joined: Oct 2006
O.P. Current open convosations
Hello I am attempting to create a script which says how many convosations windows I currently have open/chating to.

I am a total noob and I was woundering if someone would be kind enough to please post me some source on how to do this!


Thanks in advance for the help.
[Image: yoshiht6.gif]
10-01-2006 11:39 PM
Profile E-Mail PM Find Quote Report
DarkMe
Full Member
***

Avatar
Thx ins4ne for my av :p

Posts: 471
Reputation: 20
31 / Male / –
Joined: Jun 2006
RE: Current open convosations
if you want ti display them in your psm you could use PSM+
http://shoutbox.menthix.net/showthread.php?tid=64514
[Image: darkme.png]
10-01-2006 11:41 PM
Profile E-Mail PM Web Find Quote Report
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
35 / Male / Flag
Joined: Aug 2006
RE: Current open convosations
The code to use is
code:
var myVar = Messenger.CurrentChats;


If you are just looking for a script to do it rather than learning the language, you could just use my script, PSM+, which can do this (amongst many other things). The link should be in my signature ;)

EDIT: :o Beaten to it!

This post was edited on 10-01-2006 at 11:43 PM by Spunky.
<Eljay> "Problems encountered: shit blew up" :zippy:
10-01-2006 11:42 PM
Profile PM Find Quote Report
fOme
New Member
*

bo0!

Posts: 6
– / Male / –
Joined: Oct 2006
O.P. RE: RE: Current open convosations
quote:
Originally posted by DarkMe
if you want ti display them in your psm you could use PSM+
http://shoutbox.menthix.net/showthread.php?tid=64514


Thanks for the post but I would rather have just the plain simple source for this one feature.

I am planning to combind the many features I currently have into one script..
[Image: yoshiht6.gif]
10-01-2006 11:42 PM
Profile E-Mail PM Find Quote Report
Plik
Veteran Member
*****

Avatar

Posts: 1489
Reputation: 46
34 / Male / –
Joined: Jun 2004
RE: Current open convosations
You could use the Messenger.CurrentChats property to get a ChatWnds object containing all the open chats, and then use the count property of the ChatWnds object to get the count.
code:
var chatWndsObj = Messenger.CurrentChats;
var chatCount = chatWndsObj.count;
And the varible chatCount would contain the number of open chats

All these propertys and more info on them can be found in the scripting documentation

Note about the previous replys: Please the correct help, or don't bother at all. If you had taken your time to look into the question you would have been able to give the complete and correct answer straight away![/cookie mode <3] :P

This post was edited on 10-01-2006 at 11:48 PM by Plik.
10-01-2006 11:45 PM
Profile PM Find Quote Report
deAd
Scripting Contest Winner
*****

Avatar

Posts: 1060
Reputation: 28
– / Male / Flag
Joined: Jan 2006
RE: Current open convosations
quote:
Originally posted by SpunkyLoveMuff
The code to use is
code:
var myVar = Messenger.CurrentChats;


That would not work. That would return a ChatWnds object, not a number.


f0me, please read the documentation (you can find it in the script database).

To count the amount of chats you have open, use:
code:
var nChats = Messenger.CurrentChats.Count;
To set that to your Personal Message, use:
code:
Messenger.MyPersonalMessage = "I currently have " + nChats + " chats open."
You would want to reset the message periodically. The best way would be to use the OnEvent_ChatWndCreated and OnEvent_ChatWndDestroyed events.

EDIT: Beat me to it, plik :P

This post was edited on 10-01-2006 at 11:49 PM by deAd.
10-01-2006 11:47 PM
Profile PM Find Quote Report
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
35 / Male / Flag
Joined: Aug 2006
RE: Current open convosations
OMG! How did I miss out "var chatCount = chatWndsObj.count;"?

I made a whole script based on it :o
<Eljay> "Problems encountered: shit blew up" :zippy:
10-01-2006 11:47 PM
Profile PM Find Quote Report
fOme
New Member
*

bo0!

Posts: 6
– / Male / –
Joined: Oct 2006
O.P. RE: Current open convosations
Excellent thanks for the fast replys!

I thank you all for your help.
[Image: yoshiht6.gif]
10-01-2006 11:49 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