sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #12873
Re: [Question #207372]: Create Region from Match/Speeding up Searches!
Question #207372 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/207372
Status: Needs information => Open
Andrew Munro gave more information on the question:
Sorry, maybe I am getting confused. I thought that when you offset an
image, it is converted to a match object. Anyway, area is not a
rectangle, it is a point which is from an image with an offset.
reference_image = img.png
cards = [(img.png).offset(x,y), (img.png).offset(x,y) etc etc]
The cards do always stay in the same place so I can simply use an offset
from an image. The cards look the same so I cannot use images. I cannot
create a region (the normal way) because I want it to work on different
browsers and screen resolutions, and from much experimentation, I find
that regions break due to them being set on pixel coordinates.
My normal way to get a region is by doing find(img).below(xpixles) but
as each card looks the same, I cannot do this.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.