Versions Compared

Key

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

...

This object allows you to emulate USB HID devices. 

Warning
titleImportant

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

ifUsbHidEmulator 

Enable() As Boolean 

...

Equivalent to KeyDown(key code) followed by KeyUp(key code). Helps Allows you to avoid leaving keys stuck down. 

...

Sets the current modifier state as specified by an associative array, using the format returned by GetModifierState(). Only modifiers that are listed will cause the state to change. Modifiers will persis persist until changed, or Clear() is called. 

...

Returns an associative array with the current state of all LED states on the keyboard. When a lock key is pressed, the  

Note
titleNote

The host may send an LED state change

...

if a lock key (i.e. Number Lock, Capital Lock, Scrolling Lock) is pressed, generating the roUsbHidLedEmulator object. The GetLedState() method can be used to get the current LED state without using an event. 

ifUserData

SetUserData(user_data As Object) 

...