Originally posted by mwsrosso: Assuming that the QTP window is the 1st open window something simple like this would work:
There are more elegant/suitable ways to achieve this but you need to supply more information about your circumstance if you want someone to supply some code.
<font size="2" face="Verdana, Arial, Helvetica">Thank You so much Sir.
I need a code that would allow me to close all other GUI windows other than QTP. That is when I run my QTP script, the pre-requisite should be that only QTP and application window to be kept open rest all that are open should be closed.
The windows are application windows and not browsers and for using the while loop I would require thw windows to be present in the object repository.
Is there any way to use Win 32 API's and what API's to use?