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:
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
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Current open convosations - by fOme on 10-01-2006 at 11:39 PM
RE: Current open convosations - by DarkMe on 10-01-2006 at 11:41 PM
RE: RE: Current open convosations - by fOme on 10-01-2006 at 11:42 PM
RE: Current open convosations - by Spunky on 10-01-2006 at 11:42 PM
RE: Current open convosations - by Plik on 10-01-2006 at 11:45 PM
RE: Current open convosations - by deAd on 10-01-2006 at 11:47 PM
RE: Current open convosations - by Spunky on 10-01-2006 at 11:47 PM
RE: Current open convosations - by fOme on 10-01-2006 at 11:49 PM


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