Skip to content
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

Open
IlfirinPL opened this issue May 12, 2016 · 4 comments
Open

Locate Dont search on all screens #17

IlfirinPL opened this issue May 12, 2016 · 4 comments

Comments

@IlfirinPL
Copy link

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

@Tattoo
Copy link
Contributor

Tattoo commented May 23, 2016

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.

@IlfirinPL
Copy link
Author

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.

@Tattoo
Copy link
Contributor

Tattoo commented May 24, 2016

So did the proposed workaround work for you or not?

@IlfirinPL
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants