You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On some monitors, the first call of autopy.mouse.location() can return a different set of coordinates on the first call than all subsequent calls, which remain consistent.
Reproduction steps
Move mouse to lower right corner
Run the following code in a new instance of Python
*Note: I am not sure whether the issue will arise on all monitors and all settings. Try with different monitors and different resolution settings. My test was performed on a 1920x1080 monitor set to the recommended resolution. This was tested on Windows 10, latest autopy version as of the date this issue was created, python 3.7.
Problem
On my machine, this is the output from running the above:
Expected result should be that all 5 rows return the same tuple. My monitor is a 1920x1080 monitor and set to the recommended resolution so I would also expect the returned tuple to be (1919.0, 1079.0). I am not sure where the coordinate systems above are coming from. Also note the first result and the next 4 results are off by a factor of around 1.25, and those next 4 results are off from the expected 1920x10 by another factor of 1.25. That is, 1535 / 1228 = 1.25 and 1919 / 1535.2 = 1.25.
On some monitors, the first call of
autopy.mouse.location()
can return a different set of coordinates on the first call than all subsequent calls, which remain consistent.Reproduction steps
*Note: I am not sure whether the issue will arise on all monitors and all settings. Try with different monitors and different resolution settings. My test was performed on a 1920x1080 monitor set to the recommended resolution. This was tested on Windows 10, latest autopy version as of the date this issue was created, python 3.7.
Problem
On my machine, this is the output from running the above:
Expected result should be that all 5 rows return the same tuple. My monitor is a 1920x1080 monitor and set to the recommended resolution so I would also expect the returned tuple to be
(1919.0, 1079.0)
. I am not sure where the coordinate systems above are coming from. Also note the first result and the next 4 results are off by a factor of around1.25
, and those next 4 results are off from the expected 1920x10 by another factor of1.25
. That is,1535 / 1228 = 1.25
and1919 / 1535.2 = 1.25
.For example, using comparable libraries:
returns
The text was updated successfully, but these errors were encountered: