DPB1Class · Utilities and settings

MouseManager

This class control the mouse movements. While most of the time you don't need to call this class (you use the various LokiPoe classes to interact with the game world, Ui and actions, Sometime you might want to do something that the Framework is not already doing, in that case you can call this class and move the mouse at your will.

Namespace: DreamPoeBot.BotFramework

public static class MouseManager
Reference: DPB1 0.3.29.56Compare the DPB2 reference → Check signatures and usage notes separately; a matching type is not a compatibility guarantee.

Members and overloads

37 declared here

SetMousePos

MethodLink ↗
public static void MouseManager.SetMousePos(string reason, Vector3 destination, bool actualymove = true)

Move the mouse to a specific location using world position (position of game objects) This method take care of converting the world position accounting for the current camera zoom and rotation, to screen position.

Return type: voidNo return value.

Parameters

reason
Parameter type: stringNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

The reason of of the move, usually used for debugging purpose.

destination

the position where to move the mouse.

actualymove
Parameter type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Deprecated, this is always true.

SetMousePosition

MethodLink ↗
public static void MouseManager.SetMousePosition(Vector2 pos, bool sleep = true)

Move the mouse to a specific location using screen position, this method is rarely used.

Return type: voidNo return value.

Parameters

pos

A vector of 2 float, internally converted to integer, describing the X and Y coordinate

sleep
Parameter type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies sleep. Optional; the default is shown in the signature.

SetMousePosition

MethodLink ↗
public static void MouseManager.SetMousePosition(Vector2i pos, bool useRandomPos = true)

Move the mouse to a specific location using screen position.

Return type: voidNo return value.

Parameters

pos

A 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.

SetMousePosition

MethodLink ↗
public static void MouseManager.SetMousePosition(int posX, int posY, bool sleep = true)

Move the mouse to a specific location using screen position.

Return type: voidNo return value.

Parameters

posX
Parameter type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

X coordinate

posY
Parameter type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Y coordinate

sleep
Parameter type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Should the function sleep after the move? default sleep is a random number between 25 and 40ms

Instance

PropertyLink ↗
public static IMouseHandler MouseManager.Instance { get; set; }

Retrieve the current IMouseHandler Instance, mostly used for internal purpose.

Value type: IMouseHandler
Explore IMouseHandler → members & methods

Defines the mouse handler contract. Implement the listed members to provide this capability.

LogEvents

PropertyLink ↗
public static bool MouseManager.LogEvents { get; set; }

If LogEvents is enabled, a log message is displayed every time the mouse is moved and the coordinates are printed.

Value type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

MouseActionDelayMs

PropertyLink ↗
public static int MouseManager.MouseActionDelayMs { get; set; }

Get or Set the default pause between mouse click actions. The default value is 50ms (20 click per second). Please note: a degree of randomnes is added to this value during runtime, different for every call. (0 to 15 ms).

Value type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

DPB1 0.3.29.56 · Reference reviewed 2026-10-30. Descriptions use source summaries where available, otherwise concise signature-based descriptions. Examples illustrate usage; they are not a live-game test.