sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #43543
Re: [Question #656054]: 2 dimensional virtual slider
Question #656054 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/656054
Status: Open => Answered
Manfred Hampl proposed the following answer:
Just some ideas:
(Please clarify: are there two independent crosshairs for vertical and
horizontal alignment or is it a single combined one?)
You will need an image of the marker alone, and an image of the crosshair alone.
search for both these images in the target region
compare the x values (of the image centers), and depending on sign of the difference press the left or right buttons
A problem will arise when the alignment is already very close, and the
marker and the crosshair will overlap!
similar with y values and up/down buttons. You might need an image with
the target marker and crosshair already overlapping in one dimension.
Finally you can check whether you find an image with target marker and
crosshair fully matching.
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.