code:
function OnconfirmEvent_CtrlClicked(Wnd, Id){
if(Id == "BtnYes"){
// do other stuff I want it to do, then:
return Message;
Wnd.Close(0);
Interop.Call("user32.dll", "EnableWindow", ChatWnd.Handle, true);
}else{
Wnd.Close(0);
Interop.Call("user32.dll", "EnableWindow", ChatWnd.Handle, true);
// do other stuff I want it to do, then:
return false;
}
}
Why do you want to return something anyway? The scripting documentation says it doesn't need a return value for the OnWndEvent_CtrlClicked event, so why would you?
Other than that, I don't actually see the problem... but where did you define that ChatWnd variable?
And also, do you have anything in your debugging window?