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](images/smilies/msn_tongue.gif)