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.`
voidNo return value.Parameters
key- Parameter type:
KeysNo current DPB page is linked for this built-in, external, generic or compatibility-only type.The key to be pressed
down- Parameter type:
boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.Should the message indicate a key down event.
char- Parameter type:
boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.Are we passing a char to the event.
up- Parameter type:
boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.Should the message indicate a key up event.
extraKey- Parameter type:
KeysNo current DPB page is linked for this built-in, external, generic or compatibility-only type.Extra key to press together with the main one (like ctrl/shift/alt)