Hi, I'm building a script and on there's a point where you have a PlusWnd and when you click on a button it writes something on the ChatWnd. The problem is that I can't do it.
[code]function OnWndCharSelectEvent_CtrlClicked(PlusWnd, ControlId)
{
switch(ControlId)
{
case "BtnClose":
PlusWnd.Close(0);
break;
case "BtnInsert":
var currenttext = ChatWindow.EditText;
var SelectedChar = PlusWnd.Combo_GetCurSel("cbcChar");
ChatWnd.EditText_ReplaceSel(SelectedChar);
break;
}
}[code]
I get "ChatWnd not defined" how can I define it? Can't find it.