UsbDeviceHacker
  1. /mouse
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. /mouse

mouseSet

Developing
POST
/mouse/set
Позволяет управлять мышкой согласно ее офицальной документации. Обязательных параметров нет, можно просто например только {"move_x": 20} отправить.

Request

Body Params application/json
buttons
integer 
required
на нажатие кнопок влияют младшие три бита числа
move_x
integer 
required
движение по горизонтали
move_y
integer 
required
движение по вертикали
scroll
integer 
required
скролл
Example
{
    "buttons": 0,
    "move_x": 0,
    "move_y": 0,
    "scroll": 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 '/mouse/set' \
--header 'Content-Type: application/json' \
--data-raw '{
    "buttons": 0,
    "move_x": 0,
    "move_y": 0,
    "scroll": 0
}'

Responses

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