Table of Contents

Method SendKeyDown

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

SendKeyDown(Key, RawModifierKeys)

Presses a key.

bool SendKeyDown(Key keyCode, RawModifierKeys modifiers = RawModifierKeys.None)

Parameters

keyCode Key

Key to operate on.

modifiers RawModifierKeys

A combination of key modifier flags to be pressed with the given keycode.

Returns

bool

Remarks

If you are using modifiers then it needs to be paired with an identical SendKeyUp(Key, RawModifierKeys) or the modifiers will not be released (Windows and macOS).