Fix bug where command did not lift key

This commit is contained in:
jknapp 2025-03-23 09:12:31 -07:00
parent 4aa5ce1ff2
commit 50d7173726
3 changed files with 3 additions and 2 deletions

BIN
dist/mp-server-v2.exe vendored

Binary file not shown.

View File

@ -25,7 +25,7 @@ class MacroPadServer:
self.configure_styles()
# Set Version Str
self.version_str = "0.5.3 Beta"
self.version_str = "0.5.4 Beta"
# Set up directories
if getattr(sys, 'frozen', False):
@ -907,6 +907,7 @@ setTimeout(() => { errorStatus.style.display = 'none'; }, 2000);
if str(macro["command"]) and len(str(macro["command"])) == 1:
pyautogui.keyDown(macro["command"])
time.sleep(0.5)
pyautogui.keyUp(macro["command"])
else:
pyautogui.typewrite(macro["command"], interval=0.02)
# Release modifier keys in reverse order

View File

@ -1 +1 @@
0.5.3
0.5.4