Is it possible with sikuli to get the exact location of text (X and Y) within an image during runtime?

Asked by Emmanuel Mbambo

Hi,

Is it possible with sikuli to get the exact location of text (X and Y) within an image during runtime even when the image on the screen has moved to another location but visible on the screen.

I'm able to use (getX, getY, getW and getH) coordinates of the image during runtime. I'm also able to get the position of text within this image by dividing, adding, multiplying or minusing the found coordinates.

The problem is when I scroll up or down, then run the program the location(x and y) changes and obviously the region changes also and I can't locate the text within this image.

My question is now.

Is it possible to use the found X and Y coordinates during runtime to locate the text within an image even when I scrolled up or down but the image is still visible on the screen? Or maybe there is or other methods to achieve this?

Question information

Language:
English Edit question
Status:
Expired
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Emmanuel Mbambo (emmasibu) said :
#1

I think simple math can help me achieve this like finding a percentage distance between the the position of the text and the image, but if there is a method available you can direct me to it.

Revision history for this message
Launchpad Janitor (janitor) said :
#2

This question was expired because it remained in the 'Open' state without activity for the last 15 days.