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

ChatWnd objects
Author: Message:
mlevit
Junior Member
**


Posts: 50
Reputation: 2
37 / Male / –
Joined: Sep 2005
O.P. ChatWnd objects
Hey,

Does anybody know how to iterate through each chat window thats open and send a message to it?

Can't figure it out,

Thanks
08-07-2006 10:39 PM
Profile PM Find Quote Report
ddunk
Veteran Member
*****

Avatar

Posts: 1228
Reputation: 51
35 / Male / Flag
Joined: Mar 2004
RE: ChatWnd objects
You could always cheat and use Plus' /all command. (I'm too lazy to figure out how to iterate through them all) :P
08-07-2006 10:42 PM
Profile E-Mail PM Web Find Quote Report
Silentdragon
Full Member
***

Avatar
if(life==null && wrists) EmoAlert();

Posts: 148
Reputation: 2
34 / Male / –
Joined: Jun 2006
RE: ChatWnd objects
code:
Debug.Trace("Currently opened chat windows:");
var Windows = Messenger.CurrentChats;
var e = new Enumerator(Windows);
for(; !e.atEnd(); e.moveNext())
{
    var ChatWindow = e.item();
    Debug.Trace(" Handle: " + ChatWindow.Handle);
}

Straight from the documentation, always check there first.
08-07-2006 10:43 PM
Profile E-Mail PM Web Find Quote Report
mlevit
Junior Member
**


Posts: 50
Reputation: 2
37 / Male / –
Joined: Sep 2005
O.P. RE: ChatWnd objects
Silentdragon, thats not it sorry.

That gets me the Contact object, not the actual ChatWnd object that i need to send message.

If you try ChatWindow.SendMessage = "hello";

You'll get: Error: Object doesn't support this property or method.

This post was edited on 08-07-2006 at 10:53 PM by mlevit.
08-07-2006 10:50 PM
Profile PM Find Quote Report
cloudhunter
Senior Member
****


Posts: 536
Reputation: 18
37 / – / –
Joined: Dec 2005
RE: ChatWnd objects
No, it gets the handle... you can use

code:
ChatWindow.SendMessage("message");

Where it says debug.trace etc...

Edit: Nvm then... why don't you check the advertising script? It has a send to all open windows feature, look at the code.

Cloudy

This post was edited on 08-07-2006 at 10:56 PM by cloudhunter.
[Image: cloudy.jpg]
Sig by pirateok/marisaok/marisa ;)
quote:
Originally posted by Moulin Rouge
The greatest thing you'll ever learn, is just to love and be loved in return

6914 days, 9 hours, 22 seconds ago
08-07-2006 10:54 PM
Profile E-Mail PM Find Quote Report
mlevit
Junior Member
**


Posts: 50
Reputation: 2
37 / Male / –
Joined: Sep 2005
O.P. RE: ChatWnd objects
Thanks, that works.
08-07-2006 11:06 PM
Profile PM Find Quote Report
cloudhunter
Senior Member
****


Posts: 536
Reputation: 18
37 / – / –
Joined: Dec 2005
RE: ChatWnd objects
You're welcome, I didn't realise that you tried to do a = :$ I just took your word for it it didn't work :P

Cloudy
[Image: cloudy.jpg]
Sig by pirateok/marisaok/marisa ;)
quote:
Originally posted by Moulin Rouge
The greatest thing you'll ever learn, is just to love and be loved in return

6914 days, 9 hours, 22 seconds ago
08-07-2006 11:10 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