RPA-Python icon indicating copy to clipboard operation
RPA-Python copied to clipboard

Multiple objects, search the top one only - try these

Open dickhfchan opened this issue 1 year ago • 2 comments
trafficstars

Hi,

I used the image for serching the coordination but there were multiple exactly matched objects in the screen. The library didn't always give me the first top object. How to let the library search from the top or give me the first top one?

Regards, Dick Chan

dickhfchan avatar Oct 14 '24 09:10 dickhfchan

Hi @dickhfchan you can try to take a larger snapshot to capture more unique background. But if that is not possible, you can check SikuliX API and use r.vision() but I don't think it's straightforward to do.

kensoh avatar Oct 14 '24 17:10 kensoh

@dickhfchan Hi, How about using Sikuix findall-maches?

Let me know if it worked for you. I'm interested to see if this works with rpa-python.

Refs in sikulix:

  • https://valmore.work/sikulix-region/
  • https://dejavuqa.tistory.com/168

baramofme avatar Oct 16 '24 13:10 baramofme