Plugin DxInput

From VoxCommando
Jump to: navigation, search

Go to the main Plugins page.

Go to the complete Plugin List.

Also see: DxInput


Plugin Description

DirectX keyboard emulation. Some applications (such as games) do not respond to InputKeys, or Sendkeys actions. In these cases, you can try to use DirectX keyboard emulation, using the actions provided by this plugin.

Actions for the DxInput plugin

KeyPress

DxInput.KeyPress
Presses a single key (for each parameter) and holds it for the default time as set in the DxInput plugin options.
Multiple parameters will be sent in sequence.

  • Parameters: 1+
  1. KeyCode : key to press [string]
  2. KeyCode : 2nd key to press [string]
  3. KeyCode : 3rd key to press [string]
  4. KeyCode : 4th key to press [string]

KeyCombo

DxInput.KeyCombo
Format of keys: {keyname1}{keyname2}...
Keycodes must be surrouned with { }
The sequence of events will be:
- press and hold <ModKeys>
- press and release <PressKeys>
- release <ModKeys>

Examples:
{leftcontrol} {c}

  • Parameters: 1-2
  1. ModKeys : Keys to hold down while pressing <PressKeys> [string]
  2. PressKeys : Keys to press and release [string]

KeyHold

DxInput.KeyHold
Press a single key with code <KeyCode>. Holds the key down for <Duration> milliseconds, and then releases. Program execution will be suspended until the action is complete.

  • Parameters: 2
  1. KeyCode : Key to press [string]
  2. Duration : Time to hold key down (milliseconds) [integer]

KeyDown

DxInput.KeyDown
Presses a key defined by <KeyCode> and holds it down (does not release). You should release it later using "KeyUp". You can also release it by physically pressing the key on your keyboard.

  • Parameters: 1
  1. KeyCode : Key to press down [string]

KeyUp

DxInput.KeyUp
Releases a key defined by <KeyCode> that was previously activated using "KeyDown". If the key was not already Down, this action should have no effect.

  • Parameters: 1
  1. KeyCode : Key to release (unpress) [string]

Type

DxInput.Type
Types <Text>. You can enter a sequence of keys or a string. You can use any letter number or the following punctuation: [ ] , . / ? ! @ # $ % ^ & * ( ) _ + ' "
Other keys can be specified by using {} such as {tab} but you can't do key combinations.
Some special characters may not work depending on you keyboard language.

Example parameter: Hello There.{return}{tab}Good? Yes!{return}

  • Parameters: 1
  1. Text : Text to type [string]

SetDelay

DxInput.SetDelay
Set the default keypress delay to <Delay > milliseconds, but does not save it to options. Remains in effect until changed again, or VoxCommando is restarted, in which case it returns to the default value that is set in options.

  • Parameters: 1
  1. Delay : set the default keypress delay (ms) [integer]

Mouse

Click

DxInput.Mouse.Click
Click (press and release) a mouse button.
Optionally specify <Duration> in milliseconds as time to hold down the button.
<Button> must be one of the following: Left, Right, Middle, X1, X2

  • Parameters: 1-2
  1. Button : Left, Right, Middle, X1, X2 [string]
  2. Duration : Time in milliseconds to hold down button [integer]

Down

DxInput.Mouse.Down
Press but do not release a mouse button.

<Button> must be one of the following: Left, Right, Middle, X1, X2

  • Parameters: 1
  1. Button : Left, Right, Middle, X1, X2 [string]

Up

DxInput.Mouse.Up
Release a mouse button that was previously pressed using DxInput.Mouse.Down

<Button> must be one of the following: Left, Right, Middle, X1, X2

  • Parameters: 1
  1. Button : Left, Right, Middle, X1, X2 [string]