DPB2Class ยท 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 DPB1 version โ†’

Members and overloads

1 results
Show all members

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.

Related types

DPB2 0.4.5.88 ยท 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.