sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #47596
Re: [Question #670183]: Count the number of pictures
Question #670183 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/670183
Status: Open => Answered
RaiMan proposed the following answer:
--- fu.getsizeofIterator(a)
it looks like
int getsizeofIterator(Iterator<Match> a) {}
is some method in class/object fu to evaluate and return the count
like this:
public int getsizeofIterator(Iterator<Match> a) {
int count = 0;
if (null != a && a.hasNext()) {
while (a.hasNext()) {
a.next()
count++;
}
}
return count;
}
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.