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

Method middle_click

packages/python-sdk/e2b_desktop/main.py:377–383  ·  view source on GitHub ↗

Middle click on the mouse position.

(self, x: Optional[int] = None, y: Optional[int] = None)

Source from the content-addressed store, hash-verified

375 self.commands.run("xdotool click 3")
376
377 def middle_click(self, x: Optional[int] = None, y: Optional[int] = None):
378 """
379 Middle click on the mouse position.
380 """
381 if x and y:
382 self.move_mouse(x, y)
383 self.commands.run("xdotool click 2")
384
385 def scroll(self, direction: Literal["up", "down"] = "down", amount: int = 1):
386 """

Callers

nothing calls this directly

Calls 1

move_mouseMethod · 0.95

Tested by

no test coverage detected