Kev #1 you need to check the event, the window 'file' needs to be global event = WaitEvent() Select event Case $803 window_closed = EventSource() Select window_closed Case Window1 Case file End Select End Select