Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

Merge branch 'main' into feat/agent-proxy

Dillon DuPont77f1a2254ff6
diff --cc libs/python/computer-server/computer_server/handlers/windows.py
index 9dfe93b9bb,eeb0d6bf05..9572cd8584
--- a/libs/python/computer-server/computer_server/handlers/windows.py
+++ b/libs/python/computer-server/computer_server/handlers/windows.py
@@@ -279,7 -416,15 +416,15 @@@ class WindowsAutomationHandler(BaseAuto
except Exception as e:
return {"success": False, "error": str(e)}
- async def hotkey(self, keys: str) -> Dict[str, Any]:
+ async def hotkey(self, keys: List[str]) -> Dict[str, Any]:
+ """Press a combination of keys simultaneously.
+
+ Args:
- keys (str): The keys to press together (e.g., 'ctrl+c', 'alt+tab').
++ keys (List[str]): The keys to press together (e.g., ['ctrl', 'c'], ['alt', 'tab']).
+
+ Returns:
+ Dict[str, Any]: A dictionary with success status and optional error message.
+ """
if not pyautogui:
return {"success": False, "error": "pyautogui not available"}