Method mouse.moveBy(+ 1 overload)
Overload
Moves the cursor (mouse pointer) relative to mouse.lastXY or mouse.xy.
public static POINT moveBy(int dx, int dy, bool useLastXY = true)
Parameters
dx (int)
X offset from lastXY.x or xy.x. |
dy (int)
Y offset from lastXY.y or xy.y. |
useLastXY (bool)
If |
Returns
POINT
Final cursor position in screen. |
Exceptions
ArgumentOutOfRangeException
The position is not in screen. No exception if option Relaxed is |
AuException
Failed to move the cursor to that position. Some reasons:
|
InputDesktopException |
Remarks
Overload(top)
Moves the cursor (mouse pointer) relative to mouse.lastXY. Uses multiple x y offsets.
public static POINT moveBy(string offsets, double speedFactor = 1)
Parameters
offsets (string)
String containing multiple x y offsets. Created by a mouse recorder tool with RecordingUtil.MouseToString. |
speedFactor (double)
Speed factor. For example, 0.5 makes 2 times faster. |
Returns
POINT
Final cursor position in screen. |
Exceptions
FormatException
Invalid Base64 string. |
ArgumentException
The string is not compatible with this library version (recorded with a newer version and has additional options). |
ArgumentOutOfRangeException
The position is not in screen. No exception if option Relaxed is |
AuException
Failed to move the cursor to that position. Some reasons:
|
InputDesktopException |
Remarks
Uses opt.mouse: OMouse.Relaxed (only for the last movement; always relaxed in intermediate movements).