← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #661467]: Find multiple items on the same "screen sample"

 

Question #661467 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/661467

    Status: Open => Answered

RaiMan proposed the following answer:
If you can wait a few hours:
This feature is principally available in 1.1.2, but the aspect you need has still to be baked into a method.
And I want the feature to be doc'ed.

I am just starting to do the work.

I will give you a note, when it is ready later.

behind the scenes:
Against one screenshot a list of images/patterns is checked concurrently (threading) and a corresponding list of matches is returned.

matches = findAny(img1, img2, pattern1, ...)

If an image/pattern was found, the corresponding list entry in the
result matches contained the Match otherwise null/None.

The rest pre- and post-processing would be your job.

But if you do not trust me :-)
as masuo mentioned in comment #2 you can build your own solution (a function with about 50 lines of code)
- take a screenshot
- setup a Finder
- distribute the needed Finder.find's into different threaded function calls.
- collect the returned matches and process them

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.