i think functions are case-sensitive so here's the fixed code
Sendmessage has to be SendMessage.
code:
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MessageKind){
if(Origin != Messenger.MyName){
var Message = "Testing";
ChatWnd.SendMessage(Message);
}
}
the code should work, only when a contact sends you a message
