in reply to Win32::OLE close other windows

Win32::GuiTest has a FindWindowLike method that takes a regex as an argument. This may well be able to do what you want.