code:function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MessageKind) { if(Message == 'Hello') { ChatWnd.SendMessage('Hi') } }