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

Method mouse_press

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

Press the mouse button.

(self, button: Literal["left", "right", "middle"] = "left")

Source from the content-addressed store, hash-verified

403 self.commands.run(f"xdotool mousemove --sync {x} {y}")
404
405 def mouse_press(self, button: Literal["left", "right", "middle"] = "left"):
406 """
407 Press the mouse button.
408 """
409 self.commands.run(f"xdotool mousedown {MOUSE_BUTTONS[button]}")
410
411 def mouse_release(self, button: Literal["left", "right", "middle"] = "left"):
412 """

Callers 1

dragMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected