OlegSmoliakov / pysikuli

cross-platform python library for gui automation
https://pypi.org/project/pysikuli/
GNU General Public License v3.0
3 stars 1 forks source link

Find image with a Multi Monitor setup? #2

Open Lachesis580 opened 1 month ago

Lachesis580 commented 1 month ago

Hi

I have a problem with the imagesearch function in relation to a multi monitor setup. As soon as the image is not on the main monitor pysikuli can't find the image. I looked at the documentation and used google but i just can't find any help.

I also tried with a region but the same result, as soon as i move it to the second monitor he can't find it anymore.

So is this even possible with pysikuli? If so how to handle this? If not could you add multi monitor support?

OlegSmoliakov commented 1 month ago

Hi!

Currently, pysikuli only supports single monitor setup, because i don't have the second monitor. So I can't test it myself. I can try to emulate it somehow, but I'm not sure if it will be the same as the real second monitor. Also, it will take some time to verify that the image search works correctly on all major platforms.

I hope to implement this in the near future, but it doesn't seem to be as fast as I'd like.

Lachesis580 commented 1 month ago

Thank you for considering it. I also can offer myself as a testing person if needed. If it is in my possibilities, I still see myself as a amateur in Python.

OlegSmoliakov commented 1 month ago

That would be great! I'll tag you when I get some progress.

Could you tell me what OS you are using and how many monitors you have? I would start with your setup, it will help me get results faster for you.

Lachesis580 commented 1 month ago

Windows 11 And 2 monitors (and a 3rd in planning)

And in the desktop settings my 2nd monitor is positioned on the left side from the main monitor. And the upcoming 3rd would be directly above the 2nd (But this doesn't have priority the dual monitor support would already be a huge plus)

OlegSmoliakov commented 1 month ago

Windows 11 And 2 monitors (and a 3rd in planning)

And in the desktop settings my 2nd monitor is positioned on the left side from the main monitor. And the upcoming 3rd would be directly above the 2nd (But this doesn't have priority the dual monitor support would already be a huge plus)

Got it, thanks!