public const int LokiPoe.Input.WM_PASTE = 770
Gets wm paste for Input.
Class to interact with the game using keyboard.
Namespace: DreamPoeBot.Loki.Game
public class LokiPoe.InputView DPB1 version →public const int LokiPoe.Input.WM_PASTE = 770
Gets wm paste for Input.
public LokiPoe.Input.Input()
Creates a new Input instance.
public static void LokiPoe.Input.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.
cxintcyintpublic static void LokiPoe.Input.ClickMMB(int cx = 0, int cy = 0)
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.
cxintcyintpublic static void LokiPoe.Input.ClickRMB(int cx = 0, int cy = 0)
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.
cxintcyintpublic static void LokiPoe.Input.DblClickLMB(int cx = 0, int cy = 0)
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.
cxintcyintpublic static void LokiPoe.Input.DblClickMMB(int cx = 0, int cy = 0)
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.
cxintcyintpublic static void LokiPoe.Input.DblClickRMB(int cx = 0, int cy = 0)
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.
cxintcyintpublic static bool LokiPoe.Input.GetClickableHighlightLabelDimensions(NetworkObject obj, out Vector2 coords, out Vector2 size, bool onlyVisible = true)
Return the position and dimension of a NetworkObject label, or Vector2.Zero if the lebel is not visible.
objNetworkObjectcoordsVector2sizeVector2onlyVisibleboolReturns: Return true if a visible lable is found.
public static Vector2 LokiPoe.Input.GetClickableHighlightLabelPosition(NetworkObject obj, bool onlyVisible = true)
Return the position of a NetworkObject label, or Vector2.Zero if the lebel is not visible.
objNetworkObjectonlyVisibleboolReturns: A Vector2 rapresenting the position of the label.
public static bool LokiPoe.Input.GetKeyForAction(string action, out Keys key)
Retrieve the currently configured key for a specifig game action. the string passed must be in the same exact form as show in the game options. Ex: "Atlas Screen", "Pantheon Panel", "Attack in place". PLEASE NOTE: even if this is supposed to work even with customized key setup, I strongly sugest you to keep the DEFAULT key setup to ensure the bot work.
actionstringkeyKeysReturns: True on success.
public static bool LokiPoe.Input.HasVisibleHighlightLabel(NetworkObject obj)
Return true if the NetworkObject has a visible label ingame.
objNetworkObjectReturns: True if the label is visible
public static bool LokiPoe.Input.HighlightObject(NetworkObject obj)
This function will move the mouse over a specific NetworkObject. This is a key function and must be used to loot, attack or interact with the game world. IMPORTANT: for WorldItems, on success (return true) the highlight/pickup key is intentionally LEFT PRESSED so the item stays highlighted for the caller's click. The CALLER is responsible for releasing the key after clicking. On failure (return false) the key state is cleaned up internally.
objNetworkObjectReturns: Return true if the object is successfully highlighted.
public static bool LokiPoe.Input.HighlightObject(NetworkObject obj, int WirldItemHighlightMethod)
Here only for testing purpose, do not use.
objNetworkObjectWirldItemHighlightMethodintReturns: A Boolean result. The member description explains the condition being checked.
public static bool LokiPoe.Input.HighlightObject(int objId)
This function will move the mouse over a specific NetworkObject. This is a key function and must be used to loot, attack or interact with the game world. IMPORTANT: for WorldItems, on success (return true) the highlight/pickup key is intentionally LEFT PRESSED so the item stays highlighted for the caller's click. The CALLER is responsible for releasing the key after clicking. On failure (return false) the key state is cleaned up internally.
objIdintReturns: Return true if the object is successfully highlighted.
public static void LokiPoe.Input.MoveMouse(int cx, int cy)
Not used anymore, use MouseManager class to handle all mouse movments.
cxintcyintpublic static void LokiPoe.Input.MoveMouse(float cx, float cy)
Not used anymore, use MouseManager class to handle all mouse movments.
cxfloatcyfloatpublic static void LokiPoe.Input.MoveMouseToScreenPos(Vector2 pos)
Move the mouse to a specific location using screen position, this method is rarely used.
posVector2public static void LokiPoe.Input.MoveMouseToScreenPos(Vector2i pos)
Move the mouse to a specific location using screen position.
posVector2ipublic static void LokiPoe.Input.MoveMouseToScreenPos(int posX, int posY, bool sleep = true)
Move the mouse to a specific location using screen position.
posXintposYintsleepboolpublic static void LokiPoe.Input.MoveMouseToWorldPos(string reason, Vector2 destination)
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.
reasonstringdestinationVector2public static void LokiPoe.Input.MoveMouseToWorldPos(string reason, Vector2i destination)
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.
reasonstringdestinationVector2ipublic static void LokiPoe.Input.MoveMouseToWorldPos(string reason, Vector3 destination)
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.
reasonstringdestinationVector3public static void LokiPoe.Input.PasteText(string msg)
Paste a specific text into a text field.
msgstringpublic static void LokiPoe.Input.PasteText(string msg, bool useSend)
Paste a specific text into a text field.
msgstringuseSendboolpublic static void LokiPoe.Input.ResetKeysState()
Reset all the keys to unpressed.
public static void LokiPoe.Input.SimulateKeyEvent(Keys key, bool down = true, bool @char = false, bool up = false, Keys extraKey = null)
Press a key using System.Window.Form.Keys as parameter, this is used to send Keystroke for special keys like `Enter`, `Esc` etc. The most common usage for this method is `SimulateKeyEvent(Keys.Esc, true, false, false) that simulate a single keystroke.`
keyKeysdownboolcharboolupboolextraKeyKeyspublic static void LokiPoe.Input.SimulateKeyEvent(char ch)
Press a key using the char rapresentation of that key. this is usually used to send specific keystroke, like `a`, `b` `c` etc etc.
chcharpublic static LokiPoe.InputMethod LokiPoe.Input.CurrentInputMethod { get; }
Current input method.
You still have to call DreamPoeBot.Loki.Game.LokiPoe.Input.Binding.Update to refresh the key combos if you change the input method after startup
public static int LokiPoe.Input.InitialInputEventDelayMs { get; }
The default value for interaction pause is a random number between 100 and 150ms.
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.