You must specify what is the ChatWnd like that :
code:
the_wnd=null;
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MessageKind){
the_wnd = ChatWnd;
}
function OnEvent_MenuClicked(sMenuId){
if(sMenuId=="mnuItem7"){
the_wnd.SendMessage("Test");
}
}
Yes and like Felu said, what's "*snips*" ?