Quote from the documentation:
A_ScreenWidth
,A_ScreenHeight
: The width and height of the primary monitor, in pixels (e.g. 1024 and 768).
I expected MouseMove A_ScreenWidth, A_ScreenHeight
to move the cursor tip at the right bottom of the screen, for example, if the screen's resolution is 1920 x 1080, then the cursor tip should be moved to (1920, 1080)
, but in reality, the cursor tip was moved to (1912, 1072)
.
Does anyone know why?
Set the coordinate mode using CoordMode
before using MouseMove
:
CoordMode Mouse
MouseMove A_ScreenWidth, A_ScreenHeight