code:
function OnWndCountDownDisplayEvent_Destroyed(Wnd, nExitCode){
if (TimerLength > 1){
OnWndCountDownDisplayEvent_Cancel = true;
}
}
function OnWndCountDownDisplayEvent_Cancel(Wnd){
if (TimerLength > 1){
return true;
}
}
That is how I do it on Screenshot Sender 4. Remember that TimerLength is the TimerCountdown included in the program. This will also prevent the user from pressing the Esc key on the keyboard to close the window.