...
Enables the HID device. This method returns true
on success. If there's a failure, use GetFailureReason()
to learn the reason for the failure.
...
Sends a key up event for the specified USB key code. This method returns true
on success.
Note | ||
---|---|---|
| ||
USB keyboards only have 6-key rollover, therefore only six keys can be down at one time. |
...
Sends a key up event for the specified USB key code. This function returns True true
on success, and returns fails
on failure (e.g. if the specified key was not already down).
KeyPress(a As Integer) As Boolean
Equivalent to KeyDown(key code)
followed by KeyUp(key code)
. Helps avoid leaving keys stuck down.
Clear() As Boolean
Clears all active keystrokes and modifiers.
GetModifierState() As Object
Returns an associative array with the current state of all modifiers (i.e. shift, alt, ctrl).
SetModifierState(a As Object) As Boolean
Sets the current modifier state as sp
ifFailureReason
GetFailureReason() As String
...