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

Documentation: No syntax given for rect tuples. #25

Closed
tdnzr opened this issue Sep 29, 2018 · 0 comments
Closed

Documentation: No syntax given for rect tuples. #25

tdnzr opened this issue Sep 29, 2018 · 0 comments

Comments

@tdnzr
Copy link

tdnzr commented Sep 29, 2018

Hey there, thanks for this module! I'm trying to automate some small GUI stuff, and autopy seems like a nice tool for the job.

I had one small issue: I wanted to search part of the screen for a GUI element and tried to provide a rectangle. But the https://www.autopy.org/documentation/api-reference/bitmap.html doesn't explain anywhere that the rect tuples are meant to be ((x, y), (width, height)). I thought the two tuples were meant to refer to the top-left and bottom-right corner of the rectangle, and promptly got an error:

"thread '' panicked at 'invalid rect: ((857, 1000), (1063, 1055)) outside of image bounds (((0, 0), (1920, 1200)))', C:\Users\appveyor.cargo\registry\src\github.com-1ecc6299db9ec823\autopilot-0.1.8\src\bitmap.rs:310:13"

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

No branches or pull requests

2 participants