Skip to content

Keyboard and Mouse Recent

1. Mouse Click

ParameterTypeDescriptionRemark
funString/mouse/click
idStringDevice unique IDMultiple separated by commas
buttonStringButton (1=left, 2=right, 3=middle, 4-8)Default: left
xIntegerX coordinate
yIntegerY coordinate
timeIntegerPress-release delay (ms)Optional
json
{
    "fun": "/mouse/click",
    "data": {
        "id": "5C:F7:E6:CE:65:22",
        "x": 100,
        "y": 100
    }
}

2. Mouse Swipe

ParameterTypeDescriptionRemark
funString/mouse/swipe
idStringDevice IDMultiple with commas
directionStringup, down, left, right
lenFloatSlide distance %0.9 = 10% to 90% of screen
step_sleepIntegerInterval between slides (ms)When stepping > 1
steppingIntegerNumber of loop slides
brakeIntegerStop immediately after sliding
sx, sy, ex, eyIntegerStart/end coordinates0 = 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:

EndpointDescription
/mouse/upRelease mouse button
/mouse/downPress mouse button
/mouse/moveMove mouse to x,y
/mouse/resetReset mouse position

7. Mouse Wheel

ParameterTypeDescription
funString/mouse/wheel
directionStringup, down, left, right
lenIntegerScroll length 1-127
numberIntegerNumber of scrolls

8. Keyboard Pressed / 9. Keyboard Released

EndpointParameterDescription
/key/downkeyPress key (English, numbers, single hotkeys)
/key/upkeyRelease key

10. Release All Keys

Request: fun = /key/upall

11. Keyboard Input

ParameterTypeDescription
funString/key/sendkey
keyStringCharacters to type
fn_keyStringHotkey (leave key empty when using)

Common Hotkeys

HotkeyDescription
WIN+hHome Screen
TAB+bReturn (not all apps)
AppSwitchApp Switcher
ControlBarControl Center
NoticeBarNotification Center
TAB+lLock screen
OPENKeyboardOpen on-screen keyboard
shift+win+3Screenshot
shift+win+4Screenshot with editing
CTRL+ALT+SHIFT+WIN+rRestart
CTRL+ALT+WIN+pPass-through mode
WIN+cCopy
WIN+vPaste
WIN+aSelect All
WIN+xCut
SwitchImeSwitch input method
BACKSPACEBackspace
ENTEREnter
UpArrow / DownArrow / LeftArrow / RightArrowDirectional

Some3C Phone Farm Documentation