diff --git a/macro_manager.py b/macro_manager.py index a180a58..c770f07 100644 --- a/macro_manager.py +++ b/macro_manager.py @@ -302,7 +302,12 @@ class MacroManager: # Press key combination keys = cmd.get("keys", []) if keys: - pyautogui.hotkey(*keys) + # Ensure keys is a list, not a string + if isinstance(keys, str): + keys = [k.strip().lower() for k in keys.split(",")] + # Small delay before hotkey for reliability on Windows + time.sleep(0.05) + pyautogui.hotkey(*keys, interval=0.05) elif cmd_type == "wait": # Delay in milliseconds