(x: number, y: number, xdoBtn: string, ydoCode: string)
| 63 | // These correspond to ydotool's packed button+action format. |
| 64 | |
| 65 | async 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 | |
| 75 | async function clickLinuxButton( |
| 76 | x: number, |
no test coverage detected
searching dependent graphs…