How to find the caption of active window ?
Can anyone tell me how to find the caption of the active window in test partner.
Thanks in advance
Re: How to find the caption of active window ?
try this : you must add a reference to TPHELPERCOMMANDS
Dim hc As New HelperCmds
Dim strAttach As String
' Make up a raw attach name, note that we use the property "hWnd" '
strAttach = "hWnd=" & CStr(hc.TopWindow.hWnd)
' Attach to the window '