| 
O.P.  Problem with ChatWndReceiveMessage's Message parameter
 Hi! 
 
I want to make a script which replaces the built-in time indicator of messenger. So i would like to see the time of sending before every received and sent lines. 
 
I tried to achieve this with the following code: 
 
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MessageKind ) 
{ 
    var a = new Date;     
    MsgPlus.DisplayToast("",Message); 
    return Message=a+Message; 
     
} 
 
The problem is, that the a variable overwrites the beginning of the Message string. It seems that Message has a fixed length, and it cannot be extended, so my received messages' first letters are always overwritten by the date variable. 
Sorry for language, and the basic question. 
 |