public static void MouseManager.SetMousePosition(Vector2i pos, bool useRandomPos = true)
Move the mouse to a specific location using screen position.
voidNo return value.Parameters
pos- Parameter type:
Vector2iA vector of 2 integers describing the X and Y coordinate
useRandomPos- Parameter type:
boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.Should the function add random(-2, 2) to x and y? Please note, this will cause the mouse to slightly move from the original position, so use it carefully.