add desktop get mouse pos
This commit is contained in:
@@ -71,9 +71,12 @@ class XDoToolMouseController(AbstractMouseController, XDoToolController):
|
||||
def __init__(self, ssh_connection: Connection):
|
||||
super().__init__(ssh_connection=ssh_connection)
|
||||
|
||||
@abstractmethod
|
||||
def get_mouse(self):
|
||||
raise NotImplementedError
|
||||
output = self._execute_xdotool_command(f"")
|
||||
parts = output.split(" ")
|
||||
x = int(parts[0].split(":")[1])
|
||||
y = int(parts[1].split(":")[1])
|
||||
return x, y
|
||||
|
||||
def mouse_move(self, x: int, y: int):
|
||||
self._execute_xdotool_command(f"mousemove {x} {y}")
|
||||
|
||||
Reference in New Issue
Block a user