DPB2Class ยท Game state and actions

LokiPoe.Input

Class to interact with the game using keyboard.

Namespace: DreamPoeBot.Loki.Game

public class LokiPoe.InputView DPB1 version โ†’

Members and overloads

1 results
Show all members

SimulateKeyEvent

MethodLink โ†—
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.`

keyKeys
The key to be pressed
downbool
Should the message indicate a key down event.
charbool
Are we passing a char to the event.
upbool
Should the message indicate a key up event.
extraKeyKeys
Extra key to press together with the main one (like ctrl/shift/alt)

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.