function OnYourWindowIdEvent_CtrlClicked(objWnd, strControlId) {
switch(strControlId) {
case "BtnSave":
message = objWnd.GetControlText("EdtMessage");
MsgPlus.DisplayToast("Your script", message);
// want to close the window? uncomment the following line
// objWnd.Close(1);
break;
}
}