Volume Control
Application-specific hotkeys for Windows
VolumeControl.Core.InputSimulator Class Reference

Provides a convenient way to synthesize keystrokes and other input.
See InputSimulatorEx.InputSimulator. More...

Collaboration diagram for VolumeControl.Core.InputSimulator:

Static Public Member Functions

static void SendKey (VirtualKeyCode vk, params VirtualKeyCode[] modifiers)
 Synthesizes a key press event for the given key.
Also accepts any number of modifier keys. More...
 
static void SendKey (EVirtualKeyCode vk, params EVirtualKeyCode[] modifiers)
 
static void SendKey (System.Windows.Input.Key key, System.Windows.Input.ModifierKeys modifierKeys)
 
static void SendText (char c)
 Synthesizes key presses to 'type' the given char. More...
 
static void SendText (string s)
 Synthesizes key presses to 'type' the given string. More...
 

Properties

static IKeyboardSimulator Keyboard [get]
 Synthesizes keyboard events. More...
 
static IMouseSimulator Mouse [get]
 Synthesizes mouse events. More...
 
static IInputDeviceStateAdaptor InputDeviceState [get]
 Input device state manager. More...
 

Detailed Description

Provides a convenient way to synthesize keystrokes and other input.
See InputSimulatorEx.InputSimulator.

Member Function Documentation

◆ SendKey() [1/3]

static void VolumeControl.Core.InputSimulator.SendKey ( EVirtualKeyCode  vk,
params EVirtualKeyCode[]  modifiers 
)
static
Parameters
vkThe EVirtualKeyCode of the key to simulate.
modifiersAny number of EVirtualKeyCode modifier keys.

◆ SendKey() [2/3]

static void VolumeControl.Core.InputSimulator.SendKey ( System.Windows.Input.Key  key,
System.Windows.Input.ModifierKeys  modifierKeys 
)
static
Parameters
keyThe key to simulate being pressed.
modifierKeysThe modifier keys to simulate being pressed.

◆ SendKey() [3/3]

static void VolumeControl.Core.InputSimulator.SendKey ( VirtualKeyCode  vk,
params VirtualKeyCode[]  modifiers 
)
static

Synthesizes a key press event for the given key.
Also accepts any number of modifier keys.

Parameters
vkThe VirtualKeyCode of the key to simulate.
modifiersAny number of VirtualKeyCode modifier keys.

◆ SendText() [1/2]

static void VolumeControl.Core.InputSimulator.SendText ( char  c)
static

Synthesizes key presses to 'type' the given char.

Parameters
cA char associated with a keyboard key.

◆ SendText() [2/2]

static void VolumeControl.Core.InputSimulator.SendText ( string  s)
static

Synthesizes key presses to 'type' the given string.

Parameters
sA string of characters associated with keyboard keys.

Property Documentation

◆ InputDeviceState

IInputDeviceStateAdaptor VolumeControl.Core.InputSimulator.InputDeviceState
staticget

Input device state manager.

◆ Keyboard

IKeyboardSimulator VolumeControl.Core.InputSimulator.Keyboard
staticget

Synthesizes keyboard events.

◆ Mouse

IMouseSimulator VolumeControl.Core.InputSimulator.Mouse
staticget

Synthesizes mouse events.


The documentation for this class was generated from the following file: