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

Script Always Stopped
Author: Message:
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Script Always Stopped
quote:
Originally posted by Samo502
Other scripts work fine, and how is ChatWnd not defined its in the MsgPlus scripting documentation with a list of commands under it?
The ChatWnd object is inherited by certain actions you cannot just use it like that.

You get access to the object by doing something like this for instance:
Javascript code:
var ChatWnd = Messenger.OpenChat ( 'johndoe@hotmail.com');
ChatWnd.SendMessage ( 'This is some text I am sending' );


You can also enumerate any open conversation windows as well:
Javascript code:
 for ( var ChatWnd = new Enumerator ( Messenger.CurrentChats ); !ChatWnd.atEnd ( ); ChatWnd.moveNext ( ) ) {
    ChatWnd.item( ).SendMessage ( 'This is some text I am sending' );
}


Make sense?

This post was edited on 09-03-2009 at 04:04 PM by matty.
09-03-2009 04:03 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Script Always Stopped - by Samo502 on 09-03-2009 at 03:34 PM
RE: Script Always Stopped - by matty on 09-03-2009 at 03:46 PM
RE: Script Always Stopped - by Samo502 on 09-03-2009 at 03:50 PM
RE: Script Always Stopped - by matty on 09-03-2009 at 04:03 PM
RE: RE: Script Always Stopped - by Samo502 on 09-03-2009 at 04:12 PM
RE: Script Always Stopped - by Matti on 09-03-2009 at 04:37 PM
RE: Script Always Stopped - by Samo502 on 09-03-2009 at 04:54 PM
RE: Script Always Stopped - by Matti on 09-03-2009 at 05:01 PM
RE: Script Always Stopped - by Samo502 on 09-03-2009 at 05:34 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