sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #27229
Re: [Question #252048]: How to create resolution independent sikuli scripts .
Question #252048 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/252048
Status: Open => Answered
RaiMan proposed the following answer:
Currently the approach, that works out of the box is to use an image set
for every resolution (or environment situation that does not work with
an existing image set).
To select the correct image set at runtime you might either use the
import feature, that makes available the images stored in the imported
.sikuli (you either have to assign the images to variables and use from
… import *, or take care, that the same image filenames are used in all
sets) or use the image path feature (again: the images in the different
folders must have the same image filename).
some comments:
-- resolution
… is no problem, as long as the image is rendered in the same way: the pixels are unchanged and the image has the same width and height in pixels
-- different rendering
… if with a different resolution setting, the rendering process creates different images on the pixel level (stretching, interpolation, change of width and/or height or even the content at all), then you need a new image, that fits to the situation.
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.