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 MouseManagerView DPB2 version →

Members and overloads

37 results

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.

reasonstring
The reason of of the move, usually used for debugging purpose.
destinationVector3
the position where to move the mouse.
actualymovebool
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.

posVector2
A vector of 2 float, internally converted to integer, describing the X and Y coordinate
sleepbool
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.

posVector2i
A vector of 2 integers describing the X and Y coordinate
useRandomPosbool
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.

posXint
X coordinate
posYint
Y coordinate
sleepbool
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.

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.

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

Related types

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