MCPcopy Create free account
hub / github.com/e2b-dev/desktop / rightClick

Method rightClick

packages/js-sdk/src/sandbox.ts:298–304  ·  view source on GitHub ↗

* Right click on the mouse position.

(x?: number, y?: number)

Source from the content-addressed store, hash-verified

296 * Right click on the mouse position.
297 */
298 async rightClick(x?: number, y?: number): Promise<void> {
299 if (x && y) {
300 await this.moveMouse(x, y)
301 }
302
303 await this.commands.run('xdotool click 3')
304 }
305
306 /**
307 * Middle click on the mouse position.

Callers 1

moveAroundFunction · 0.80

Calls 1

moveMouseMethod · 0.95

Tested by

no test coverage detected