sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #30700
Re: [Question #262805]: Switching Regoins
Question #262805 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/262805
Status: Open => Answered
RaiMan proposed the following answer:
with Sikuli(X) you should always work with Regions:
Region left_side = left_most_button.below(left_most_button.h).union(left_most_button);
// .. and the others similar
// to make the regions visible
left_side.highlight(2)
// ... and the others
to use setROI is not recommended, since it restricts the screen search
area as long as you reset it, which might lead to strange situations.
... and setROI does nothing else.
you can now use the set regions, to do something with them:
Match m = left_side.find(some_image);
m.click();
....
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.