I have found a solution for this problem onto WIN2000.
You should use an other API call from the windows library. The syntax in VB code is :
Declare Function WindowFromPointXY Lib "User32" Alias _
"WindowFromPoint" (ByVal xPoint As Long, ByVal yPoint As Long) _
As Long
In labview make a call on this function, when you clic on the run button for example, or an other.
After you can test if the windows is OK. Labview as a function who return the complete string of the running VI.
With the API call :
Declare Function GetWindowText Lib "User32" Alias _
"GetWindowTextA" (ByVal hwnd As Long, ByVal lpString As String, _
ByVal cch As Long) As Long
you have the name of the windows. Just transmit the handle of the
windows you have had with the cursor position.
I have send an attachment to explain this case.