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.
Enable and disable the Mouse debugging (Shift-Alt-X with the GAME WINDOWS focused) When the DebugCursor is active, the framework move the mouse cursor so you can see where its pointing.
Value type:boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
public static MouseManager.MouseMoverDelegate MouseManager.ThisMouseMoverDelegate
Allows you to set a delegate that will control the mouse movement from the current mouse position to a destination position. The delegate contains 3 parameters: Vector2i destination: The final mouse position desired. Vector2i normalizedDestination: The final mouse position, confined in the game window (this is equal to destination in case the position is already inside the window) Vector2i currentPosition: The actual mouse position. It is your duty to eventually set the debugMouse position, and actually move the mouse. This is what the original code look like:
Value type:staticNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
public static void MouseManager.ClickLMB(int cx = 0, int cy = 0)
Click the left mouse button, Pls NOTE: Its important to pass the X and Y location if you click on a User Interface control, while is not necessary if you click on the game world.
Return type:voidNo return value.
Parameters
cx
Parameter type:intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
X coordinate
cy
Parameter type:intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
public static void MouseManager.ClickMMB(int cx, int cy)
Click the middle mouse button, Pls NOTE: Its important to pass the X and Y location if you click on a User Interface control, while is not necessary if you click on the game world.
Return type:voidNo return value.
Parameters
cx
Parameter type:intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
X coordinate
cy
Parameter type:intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
public static void MouseManager.ClickRMB(int cx, int cy)
Double Click the right mouse button, Pls NOTE: Its important to pass the X and Y location if you click on a User Interface control, while is not necessary if you click on the game world.
Return type:voidNo return value.
Parameters
cx
Parameter type:intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
X coordinate
cy
Parameter type:intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
public static void MouseManager.DblClickLMB(int cx, int cy)
Double Click the left mouse button, Pls NOTE: Its important to pass the X and Y location if you click on a User Interface control, while is not necessary if you click on the game world.
Return type:voidNo return value.
Parameters
cx
Parameter type:intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
X coordinate
cy
Parameter type:intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
public static void MouseManager.DblClickMMB(int cx, int cy)
Double Click the middle mouse button, Pls NOTE: Its important to pass the X and Y location if you click on a User Interface control, while is not necessary if you click on the game world.
Return type:voidNo return value.
Parameters
cx
Parameter type:intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
X coordinate
cy
Parameter type:intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
public static void MouseManager.DblClickRMB(int cx, int cy)
Double Click the right mouse button, Pls NOTE: Its important to pass the X and Y location if you click on a User Interface control, while is not necessary if you click on the game world.
Return type:voidNo return value.
Parameters
cx
Parameter type:intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
X coordinate
cy
Parameter type:intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
public static void MouseManager.PostMouseMovement(int x, int y, bool sleep = true)
Execute the internal PostMessage to add the mouse movement to the system message queue, mostly used for internal purpose or to control the mouse with ThisMouseMoverDelegate.
Return type:voidNo return value.
Parameters
x
Parameter type:intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
The X position
y
Parameter type:intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
The Y position
sleep
Parameter type:boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
public static void MouseManager.PressLMB(int cx, int cy)
Press the left mouse button and keep it pressed, Pls NOTE: Its important to pass the X and Y location if you click on a User Interface control, while is not necessary if you click on the game world.
Return type:voidNo return value.
Parameters
cx
Parameter type:intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
X coordinate
cy
Parameter type:intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
public static void MouseManager.PressMMB(int cx, int cy)
Press the middle mouse button and keep it pressed, Pls NOTE: Its important to pass the X and Y location if you click on a User Interface control, while is not necessary if you click on the game world.
Return type:voidNo return value.
Parameters
cx
Parameter type:intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
X coordinate
cy
Parameter type:intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
public static void MouseManager.PressRMB(int cx, int cy)
Press the right mouse button and keep it pressed, Pls NOTE: Its important to pass the X and Y location if you click on a User Interface control, while is not necessary if you click on the game world.
Return type:voidNo return value.
Parameters
cx
Parameter type:intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
X coordinate
cy
Parameter type:intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
public static void MouseManager.ReleaseLMB(int cx, int cy)
Release the left mouse button and keep it pressed, Pls NOTE: Its important to pass the X and Y location if you click on a User Interface control, while is not necessary if you click on the game world.
Return type:voidNo return value.
Parameters
cx
Parameter type:intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
X coordinate
cy
Parameter type:intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
public static void MouseManager.ReleaseMMB(int cx, int cy)
Release the middle mouse button and keep it pressed, Pls NOTE: Its important to pass the X and Y location if you click on a User Interface control, while is not necessary if you click on the game world.
Return type:voidNo return value.
Parameters
cx
Parameter type:intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
X coordinate
cy
Parameter type:intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
public static void MouseManager.ReleaseRMB(int cx, int cy)
Release the right mouse button and keep it pressed, Pls NOTE: Its important to pass the X and Y location if you click on a User Interface control, while is not necessary if you click on the game world.
Return type:voidNo return value.
Parameters
cx
Parameter type:intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
X coordinate
cy
Parameter type:intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.
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.
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.
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.
Произошла ошибка. Перезагрузите страницу, чтобы продолжить.
Перезагрузить🗙