Shoutbox

[help] Insert last message to textarea - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: [help] Insert last message to textarea (/showthread.php?tid=91304)

[help] Insert last message to textarea by chu4 on 07-02-2009 at 01:47 PM

How i can insert last reserved message, to textarea?
Not sendMessage!


RE: [help] Insert last message to textarea by matty on 07-02-2009 at 01:58 PM

http://mpscripts.net/docs/ref-chatwnd-edittext.php
http://mpscripts.net/docs/ref-chatwnd-editchangeallowed.php

Javascript code:
if ( pChatWnd.EditChangeAllowed === true ) {
    pChatWnd.EditText = 'this is some text';
}


pChatWnd is inherited 4 ways and cannot directly be called as such.

Javascript 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 );
}