hmm thats an idea i could trigger on filesend as exmaple
start a timer with a function which checks if the window is
still open when not it dos the action and stops the timer..

the question is if that is not to overwhelming the capacity of mirc.