GeekInterview.com
Series: Subject: Topic:
Question: 50 of 779

GetTextLocation method is not working properly

I am searching a word "DR" withing a Winobjetc by using the below given code;

Window("Job Console").Activate
strFind=Window("Job Console").WinObject("WindowsForms10.Window.8.app.0.").GetTextLocation("DR",l,t,r,b)
If strFind=True Then
msgbox "Coordinates are:"& l & "," & t & "," & r & "," & b
Window("Job Console").WinObject("WindowsForms10.Window.8.app.0.").Click (l+r)/2,(t+b)/2
End If
For search word "DR" , the co ordinates are giving as 0,0,787,389, now if I change the serach word to "DR01322552"( which is not present within the winobject) then also the coordinates are giving as 0,0,787,389.

Can anyone please help me to resolve this issue.
Your help in this regard will be highly appreciated.
Asked by: simanta.adhikary | Member Since Jun-2007 | Asked on: Oct 15th, 2010

View all questions by simanta.adhikary

This Question is not yet answered!

Related Open Questions

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.