quote:
Originally posted by SmokingCookie
I have tried something lie this (without success though ) :
Didn't work though
try this
code:
function OnEvent_ChatWndSendMessage(ChatWnd,Message) {
Message += "DC_";
return Message;
}
function OnEvent_ChatWndReceiveMessage(ChatWnd,Origin,Message) {
Number = Message.search("DC_");
Message = Message.replace("DC_","");
return Message;
}
on your original code, you're telling it to replace the index of the text with nothing
(and "ChatWndRe
ceiveMessage)
your variables/parameter on that same function are switched ("ChatWnd,
Message,Origin")