DPB1Class ยท Game state and actions

LokiPoe.Input

Class to interact with the game using keyboard.

Namespace: DreamPoeBot.Loki.Game

public class LokiPoe.InputView DPB2 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.Escape, 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
Specifies extra key. Optional; the default is shown in the signature.

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.