Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GetTextLocation method
#1
Solved: 11 Years, 4 Months, 4 Weeks ago
Hi ,
I am using GetTextLocation method to get the 4 coordinates of the text in the window :
Code:
r=Window("Main Entry Login Window").GetTextLocation("User", a,b,c,d, false)
values of a,b,c d are the coordinates of the text .
I want to find the right mouse coordinate to use Click methode
....Click X, Y

Do you know how to get X,Y from the coord a,b,c d
Thx
Reply
#2
Solved: 11 Years, 4 Months, 4 Weeks ago
Hi,
Here is the code to get the window X and Y coordinates.

' for X coordinates
Code:
xCor =Window("Main Entry Login Window").GetROProperty("x")

' for Y coordinates

Code:
yCor =Window("Main Entry Login Window").GetROProperty("y")
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Help Regarding GetTextLocation koti.deva 6 21,378 02-05-2014, 03:40 PM
Last Post: chaitali
  What is a Method in QTP and how many types are method r there in QTP? vidyabr 1 4,510 07-28-2008, 02:14 PM
Last Post: surya_7mar

Forum Jump:


Users browsing this thread: 1 Guest(s)