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:
js 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:
js code:
for ( var ChatWnd = new Enumerator ( Messenger.CurrentChats ); !ChatWnd.atEnd ( ); ChatWnd.moveNext ( ) ) {
ChatWnd.item( ).SendMessage ( 'This is some text I am sending' );
}
Make sense?