moukey |
function
|
async (action, args) => void
action: 'click' | 'drag' | 'scroll' | 'sendChar' | 'sendString' | 'sendCombo'
args: 依action而定
click: [x, y, btn?, count?] btn: 'left'|'right'|'middle' (default 'left'), count: int (default 1)
drag: [x1, y1, x2, y2, btn?] btn: 同click (default 'left')
scroll: [x, y, dir, amount?] dir: 'up'|'down'|'left'|'right', amount: int (default 3)
sendChar: [char] 純文字單字元 (SendText)
sendString: [str] 純文字字串 (SendText)
sendCombo: [combo] xdotool風格組合鍵字串 (如 'ctrl+v', 'F5') |