sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #35861
Re: [Question #276532]: A page has the same image in multiple areas. How will the script select the right one?
Question #276532 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/276532
Status: Open => Answered
Eugene S proposed the following answer:
If you have more than one image that will match your pattern you will
need to perform additional steps to ensure you are picking the correct
area.
There are many ways how you can solve this problem and it depends on
your particular case.
For example:
1. Extract the screen location of all matched regions and pick the correct one.
2. Use another pattern that is located closely to your area of interest as a pivot.
3. You can initially limit the search area, for example to only the left side of the screen.
4. etc..
Cheers,
Eugene
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.