← Back to team overview

sikuli-driver team mailing list archive

[Question #702308]: many matched components, how to decide which to click?

 

New question #702308 on SikuliX:
https://answers.launchpad.net/sikuli/+question/702308

For example, there are 5 matched compontes which are the same actually in the full screen and their similarities are all bigger than 0.99.
I konw that sikuli will click the compont which has the biggest similarity by matchTemplate method.
But i need to click the compont closest to the center of the screen. It may has similarity like 0.9901, less than another compont which has 0.9909 in similarity.  

Is there any method in sikuli can do that? 
Should this requirement need to change the source code? If so, please give me some advice, and i will try to do that myself.
Thank in advance!

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