UsbDeviceHacker
  1. /keyboard
UsbDeviceHacker
  • /mouse
    • mouseSet
      POST
    • mouseRemove
      POST
    • mouseClick
      POST
  • /keyboard
    • keyboardSet
      POST
    • keyboardRemove
      POST
    • keyboardClick
      POST
  • /animation
    • animationSet_id=1
      POST
    • animationSet_id=2
      POST
    • animationSet_id=3
      POST
    • animationRemove
      POST
  1. /keyboard

keyboardSet

Developing
POST
/keyboard/set
Эмулирует значения клавиатуры по офицальной документации. Обязательных входных параметров нет, можно просто например только {"keycode1": 4} отправить.

Request

Body Params application/json
modifier
integer 
required
зажал shift
reserved
integer 
required
keycode1
integer 
required
нажатие "A"
keycode2
integer 
required
нажатие "B"
keycode3
integer 
required
keycode4
integer 
required
keycode5
integer 
required
keycode6
integer 
required
Example
{
    "modifier": 2, // зажал shift
    "reserved": 0, 
    "keycode1": 4, // нажатие "A"
    "keycode2": 5, // нажатие "B"
    "keycode3": 0,
    "keycode4": 0,
    "keycode5": 0,
    "keycode6": 0
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/keyboard/set' \
--header 'Content-Type: application/json' \
--data-raw '{
    "modifier": 2, // зажал shift
    "reserved": 0, 
    "keycode1": 4, // нажатие "A"
    "keycode2": 5, // нажатие "B"
    "keycode3": 0,
    "keycode4": 0,
    "keycode5": 0,
    "keycode6": 0
}'

Responses

🟢200Success
application/json
Body
status
string 
required
Example
{
    "status": "ok"
}
🟠400Bad
🔴507BadStm
Modified at 2024-10-28 09:05:23
Previous
mouseClick
Next
keyboardRemove
Built with