Whenever a window is killed (checked out by parameter * or number for the window (see HELP WINDOW)), action is done. The parameters are:
$0 Refnum or name of the window Up index
Up index