Merge remote-tracking branch 'ofw/dev' into mntm-dev --nobuild

This commit is contained in:
Willy-JL
2025-03-26 11:28:08 +00:00
26 changed files with 344 additions and 126 deletions

View File

@@ -1,6 +1,5 @@
# js_badusb {#js_badusb}
# BadUSB module {#js_badusb}
# BadUSB module
```js
let badusb = require("badusb");
```
@@ -60,7 +59,7 @@ badusb.press(0x47); // Press key with HID code (hex) 0x47 (Scroll lock)
Hold a key. Up to 5 keys (excluding modifiers) can be held simultaneously.
### Parameters
Same as `press`
Same as `press`.
### Examples:
```js
@@ -72,9 +71,9 @@ badusb.hold("CTRL", "v"); // Press and hold CTRL + "v" combo
Release a previously held key.
### Parameters
Same as `press`
Same as `press`.
Release all keys if called without parameters
Release all keys if called without parameters.
### Examples:
```js
@@ -87,7 +86,7 @@ Print a string.
### Parameters
- A string to print
- (optional) delay between key presses
- *(optional)* Delay between key presses
### Examples:
```js
@@ -100,7 +99,7 @@ Same as `print` but ended with "ENTER" press.
### Parameters
- A string to print
- (optional) delay between key presses
- *(optional)* Delay between key presses
### Examples:
```js