I belive is related to function call of MoveMouseRelative
from docs
Code:MoveMouseRelative
The MoveMouseRelative() function is used to simulate relative mouse movement. NOTE:
Calling GetMousePosition immediately afterwards, will likely return the previous state. It will
take a few milliseconds for the operation to complete.
MoveMouseRelative( x, y, )
Parameters
x
Movement along the x-axis
Y
Movement along the y-axis
Return Values
nil
Remarks
Positive x values simulate movement to right.
Negative x values simulate movement to left.
Positive y values simulate movement downwards.
Negative y values simulate movement upwards.
Example
-- Simulate relative mouse movement upwards in 1 pixel increments
for i = 0, 50 do
MoveMouseRelative(0, -1)
Sleep(8)
end