-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Locate Dont search on all screens #17
Comments
This is a valid concern, but I think we would rather want to be able to explicitly tell what screen is used rather than doing something that potentially takes a while and provides false positives. More research for best approach is definitely needed. I'm not completely sure if the following works, but I suggest you try setting the screen you want as your main screen. That ought to direct the locate to a correct place. Please leave a comment if this works or does not work for you. |
I use it for specific case when web browser is spread across multiple displays. And for this case i dont want to use xpath or jquery. I want to check location. |
So did the proposed workaround work for you or not? |
No this solution is not working, but i will try later with virtual-desktops, maybe they will work, but I expect that they will also not be visible. This is not critical issue its more like nice to have it test. |
Locate can`t find image when is located on other screen, maybe you can use different method (locateAllOnScreen() as fallback when first failed)
https://pyautogui.readthedocs.io/en/latest/cheatsheet.html#screenshot-functions
The text was updated successfully, but these errors were encountered: