Is there is a way to identify the active window
Is there is a way to know the name of the active window when QTP is executing the test
Re: Is there is a way to identify the active windo
yes, there is a way.
use the "user32.dll" (via Extern.Declare) and the function call to "GetForeGroundWindow". this will give you the window handle of the active (forground) window
Extern.Declare micHwnd, "GetForegroundWindow","user32.dll","GetForegroundW indow"
winHandle = extern.GetForegroundWindow
MsgBox winHandle,vbOKOnly,"Hande of foreground/active window"
over this handle you can find out the window name with qtp-internal functions
de omnibus dubitandum
For all Questions: Please be sure to take a look at the QTP Manual before posting any Questions, thanks for doing this