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

Method right_click

packages/python-sdk/e2b_desktop/main.py:367–375  ·  view source on GitHub ↗
(self, x: Optional[int] = None, y: Optional[int] = None)

Source from the content-addressed store, hash-verified

365 self.commands.run("xdotool click --repeat 2 1")
366
367 def right_click(self, x: Optional[int] = None, y: Optional[int] = None):
368 if (x is None) != (y is None):
369 raise ValueError("Both x and y must be provided together")
370 """
371 Right click on the mouse position.
372 """
373 if x and y:
374 self.move_mouse(x, y)
375 self.commands.run("xdotool click 3")
376
377 def middle_click(self, x: Optional[int] = None, y: Optional[int] = None):
378 """

Callers 3

mainFunction · 0.80
test_right_clickFunction · 0.80
move_aroundFunction · 0.80

Calls 1

move_mouseMethod · 0.95

Tested by 1

test_right_clickFunction · 0.64