in reply to find active window

Are you using a particular GUI toolkit? If so, which?

Michele.