2 Commits

Author SHA1 Message Date
6974947028 Bump version to 0.9.3 2026-01-04 12:28:13 -08:00
517ee943a9 Fix hotkey execution reliability on Windows
- Add interval parameter (50ms) between key presses in pyautogui.hotkey()
- Add small delay before hotkey execution for better Windows compatibility
- Add defensive check to handle keys stored as string instead of list

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-04 12:18:17 -08:00
2 changed files with 7 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
# Configuration and constants for MacroPad Server
VERSION = "0.9.2"
VERSION = "0.9.3"
DEFAULT_PORT = 40000
# UI Theme colors

View File

@@ -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