code:
function OnWindowidEvent_CtrlClicked(PlusWnd, ControlId){
switch(ControlId){
case "control-id-of-button": // when a button with this id is clicked..
PlusWnd.Close(1); // Closes the window
break;
case "control-id-of-another-button":
Interop.Call("user32","MessageBoxW", 0, "Button 2 has been clicked", "some script", 64); // Displays a message box.
break;
}
}
yeah so "PlusWnd.Close(1);" closes the window.
replace "Windowid" with your window's ID.