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

keyboardClick

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

Request

Body Params application/json
modifier
integer 
required
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": 0, 
    "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/click' \
--header 'Content-Type: application/json' \
--data-raw '{
    "modifier": 0, 
    "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": "string"
}
🟠400Bad
🔴507BadStm
Modified at 2024-10-28 09:10:32
Previous
keyboardRemove
Next
animationSet_id=1
Built with