sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #00416
[Question #141159]: findAll does not as expected in java
New question #141159 on Sikuli:
https://answers.launchpad.net/sikuli/+question/141159
Hi,
When I'm running a simple scenario in the Sikuli-X rc1 ide:
with findAll("star.png") as mm:
while mm.hasNext(): # loop as long there is a first and more matches
print "found: ", mm.next()
it works as expected.
But when I'm running the same scenario in java [using sikuli-script.jar]:
try {
Iterator<Match> matches = screen.findAll("star.png");
for (; matches.hasNext();) {
count++;
}
} catch (FindFailed ex) {
printStackTrace();
}
It 'hangs' for a looong while in findAll, and eventually returns millions of hits....
Am I using it wrong? Has anybody encountered this?
Everything else works fine in java, like find, wait, click, doubleclick
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.