http://mpscripts.net/docs/ref-chatwnd-edittext.php
http://mpscripts.net/docs/ref-chatwnd-editchangeallowed.php
js code:
if ( pChatWnd.EditChangeAllowed === true ) {
pChatWnd.EditText = 'this is some text';
}
pChatWnd is inherited 4 ways and cannot directly be called as such.
js code:
function OnEvent_ChatWndSendMessage ( pChatWnd, sMessage ) {}
function OnEvent_ChatWndReceiveMessage ( pChatWnd, sOrigin, sMessage, nMessageType ) {}
pChatWnd = MsgPlus.OpenChat ( 'johndoe@hotmail.com' );
for ( var pChatWnd = new Enumerator ( Messenger.CurrentChats ); !pChatWnd.atEnd(); pChatWnd.moveNext() ) {
Debut.Trace ( pChatWnd.item().Handle );
}