quote:
Originally posted by sayed
this is my code
code:
function OnWndMainEvent_CtrlClicked(Wnd, ControlId) {
if(ControlId == "ButtonSend") {
vari[0] = Wnd.GetControlText("var1");
vari[1] = Wnd.GetControlText("var2");
Wnd.Visible = false;
Wnd.SendMessage("hi");
}
}
is this correct ?
No,
The variable Wnd defines the Plus! window not the conversation window.