sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #03074
Re: [Question #160030]: String returned from findAll() function are not in order of their occurrence in Screen
Question #160030 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/160030
Status: Open => Answered
RaiMan proposed the following answer:
on Java level, findAll returns an object of type Iterator<Match>.
But neither find nor findAll return strings, they return Match objects,
that represent the found regions.
So the usage should be:
Iterator<Match> matches;
matches = s.findAll( [ANY_IMAGE] )
Now it should be possible to have a for loop that loops through matches.
You might sort the matches as needed before regarding to their
coordinates (x or y) or other available attributes of a Match object.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.