Keyboard and Mouse Recent
1. Mouse Click
| Parameter | Type | Description | Remark |
|---|---|---|---|
fun | String | /mouse/click | |
id | String | Device unique ID | Multiple separated by commas |
button | String | Button (1=left, 2=right, 3=middle, 4-8) | Default: left |
x | Integer | X coordinate | |
y | Integer | Y coordinate | |
time | Integer | Press-release delay (ms) | Optional |
json
{
"fun": "/mouse/click",
"data": {
"id": "5C:F7:E6:CE:65:22",
"x": 100,
"y": 100
}
}2. Mouse Swipe
| Parameter | Type | Description | Remark |
|---|---|---|---|
fun | String | /mouse/swipe | |
id | String | Device ID | Multiple with commas |
direction | String | up, down, left, right | |
len | Float | Slide distance % | 0.9 = 10% to 90% of screen |
step_sleep | Integer | Interval between slides (ms) | When stepping > 1 |
stepping | Integer | Number of loop slides | |
brake | Integer | Stop immediately after sliding | |
sx, sy, ex, ey | Integer | Start/end coordinates | 0 = auto-calculated |
json
{
"fun": "/mouse/swipe",
"data": {
"id": "1C:5C:F2:BC:D0:CC",
"direction": "up",
"len": 0.9,
"steping": 10,
"step_sleep": 10,
"brake": true
}
}3. Mouse Up / 4. Mouse Down / 5. Mouse Move / 6. Mouse Reset
All follow the same pattern:
| Endpoint | Description |
|---|---|
/mouse/up | Release mouse button |
/mouse/down | Press mouse button |
/mouse/move | Move mouse to x,y |
/mouse/reset | Reset mouse position |
7. Mouse Wheel
| Parameter | Type | Description |
|---|---|---|
fun | String | /mouse/wheel |
direction | String | up, down, left, right |
len | Integer | Scroll length 1-127 |
number | Integer | Number of scrolls |
8. Keyboard Pressed / 9. Keyboard Released
| Endpoint | Parameter | Description |
|---|---|---|
/key/down | key | Press key (English, numbers, single hotkeys) |
/key/up | key | Release key |
10. Release All Keys
Request: fun = /key/upall
11. Keyboard Input
| Parameter | Type | Description |
|---|---|---|
fun | String | /key/sendkey |
key | String | Characters to type |
fn_key | String | Hotkey (leave key empty when using) |
Common Hotkeys
| Hotkey | Description |
|---|---|
WIN+h | Home Screen |
TAB+b | Return (not all apps) |
AppSwitch | App Switcher |
ControlBar | Control Center |
NoticeBar | Notification Center |
TAB+l | Lock screen |
OPENKeyboard | Open on-screen keyboard |
shift+win+3 | Screenshot |
shift+win+4 | Screenshot with editing |
CTRL+ALT+SHIFT+WIN+r | Restart |
CTRL+ALT+WIN+p | Pass-through mode |
WIN+c | Copy |
WIN+v | Paste |
WIN+a | Select All |
WIN+x | Cut |
SwitchIme | Switch input method |
BACKSPACE | Backspace |
ENTER | Enter |
UpArrow / DownArrow / LeftArrow / RightArrow | Directional |