Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 6974947028 | |||
| 517ee943a9 |
@@ -1,6 +1,6 @@
|
|||||||
# Configuration and constants for MacroPad Server
|
# Configuration and constants for MacroPad Server
|
||||||
|
|
||||||
VERSION = "0.9.2"
|
VERSION = "0.9.3"
|
||||||
DEFAULT_PORT = 40000
|
DEFAULT_PORT = 40000
|
||||||
|
|
||||||
# UI Theme colors
|
# UI Theme colors
|
||||||
|
|||||||
@@ -302,7 +302,12 @@ class MacroManager:
|
|||||||
# Press key combination
|
# Press key combination
|
||||||
keys = cmd.get("keys", [])
|
keys = cmd.get("keys", [])
|
||||||
if 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":
|
elif cmd_type == "wait":
|
||||||
# Delay in milliseconds
|
# Delay in milliseconds
|
||||||
|
|||||||
Reference in New Issue
Block a user