MCPcopy Create free account
hub / github.com/callstack/agent-device / clickButton

Function clickButton

src/platforms/linux/input-actions.ts:65–73  ·  view source on GitHub ↗
(x: number, y: number, xdoBtn: string, ydoCode: string)

Source from the content-addressed store, hash-verified

63// These correspond to ydotool's packed button+action format.
64
65async function clickButton(x: number, y: number, xdoBtn: string, ydoCode: string): Promise<void> {
66 await moveTo(x, y);
67 const { tool } = await ensureInputTool();
68 if (tool === 'xdotool') {
69 await xdotool('click', xdoBtn);
70 } else {
71 await ydotool('click', ydoCode);
72 }
73}
74
75async function clickLinuxButton(
76 x: number,

Callers 1

clickLinuxButtonFunction · 0.85

Calls 4

ensureInputToolFunction · 0.90
moveToFunction · 0.85
xdotoolFunction · 0.85
ydotoolFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…