The application I am testing has the unusual behavior of occasionally moving a window partially above the top of the display. I cannot ask the developers to fix this and I don't know when it is going to happen.

I would like to have a way to check for windows where the y axis is less than zero. Maybe then I can move it to a lower location.

I do know the title of the window, but since the window title is to high up, QTP 11 is reporting it as not existing.

Would something like this work?

If window("title=.*", "index:=0", "y:=-[d]).exist(0) Then
' Move the window lower down using QTP or an API.
End If

Can we use regular expressions with x,y co-ordinates?

Is there a better solution?