← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #215490]: Find and click image, then switch tabs

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
ok, much headaches ;-)
I am back online again now.

The basic problem with your challenge is the following:
- an image to search for, is always a rectangle
- the vertical position of the symbol varies
- so you need an image with as little background as possible, to find the match
- the looking for the grey bars is one possible approach, to find the smallest relevant area

But as I mentioned with my solution: it is only a template for a case of
5 symbols in a row, where the left one is the one to match.

in example 6 the one to match is not the left one, so in a generalized
solution we have to take shots of each symbol and compare against all
the others.

So you need a solution for the problem, that the symbols do not sit in
the same vertical position.

And: if you do not manage to capture the symbols automatically in a way,
that they can be found independently from their vertical position, then
the whole automation does make much sense.

surfbar 9 is idead easier: there you could just make a minimal shot of the left symbol and search it in the bar with the 4 symbols.
Might be a good thing to start with.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.