in reply to Getwindow function in Win32::API
I would repeat bsdz's earlier advice to you to look at Win32::GuiTest. In particlar, the FindWindowLike() function.