code:function OnEvent_ChatWndSendMessage(ChatWnd,Message) { if (Message== "k" ){ ChatWnd.SendMessage('ok') return ""; } }