sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #14493
Re: [Question #213704]: click( img ) not working..
Question #213704 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/213704
RaiMan proposed the following answer:
-- and now your question in comment #11
download: https://dl.dropbox.com/u/42895525/findall.sikuli.zip
# this should run on https://launchpad.net/sikuli
top = "1352556855570.png"
# define a search region
r = find(top).below()
r.highlight(2)
img = "1352556890908.png"
# get the most probable matches
matches = list((m for m in list(r.findAll(img)) if m.getScore()>0.95))
# sort top down (y value)
matches.sort(key = lambda m : m.y)
# show them
for m in matches:
m.highlight(1)
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.