Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This object allows you to emulate USB HID devices, but currently, the only supported type of device is a USB keyboard

Warning
titleImportant

USB keyboard codes are different from PS/2, ASCII, and BrightSign keyboard codes. 

...

Sends a keydown event for the specified USB key code. This method returns true on success. If there's a failure, use GetFailureReason() to get the reason for the failure. 

Note
titleNote

USB keyboards only have 6-key rollover, therefore only six keys can be down at one time.

...

Sends a keyup event for the specified USB key code. This function returns true on success, and returns fails on failure (e.g. if the specified key was not already down). If there's a failure, use GetFailureReason() to get the reason for the failure

KeyPress(a As Integer) As Boolean 

...

Returns additional information if Enable() a method fails.