code:
function OnSong2AvatarEvent_CtrlClicked(PlusWnd, ControlId){
if(ControlId == 'BaseBtnCancel') {
MsgPlus.CancelTimer("CheckSong");
}
}
is what i use to check if they click the x button, then if they do it cancels my timer, simply change my cancel timer call to wahtever you need (I'd do it myself but i can't be bothered
)