-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
Hello,
First, big thanks for your work and this application. I was looking for tiling windows manager which is natural for me and I found :D
My environment:
- Python 3.13
- master source code
My configuration:
- Only hotkeys
After launching application instant text replacement implemented via AutoHotKeys application stopped working. To discover issue I used following python code:
# text_replacer.py
from pynput.keyboard import Key, Listener
import pyautogui
replacements = {"#teststring": "Add new comment"}
def on_press(key):
global typed_keys
global listening
key_str = str(key).replace("'", "")
print(key_str)
if key_str == macro_starter:
typed_keys = []
listening = True
if listening:
if key_str.isalpha():
typed_keys.append(key_str)
if key == macro_ender:
candidate_keyword = ""
candidate_keyword = candidate_keyword.join(typed_keys)
if candidate_keyword != "":
if candidate_keyword in replacements.keys():
pyautogui.press("backspace", presses=len(candidate_keyword) + 2)
pyautogui.typewrite(replacements[candidate_keyword])
listening = False
macro_starter = "#"
macro_ender = Key.space
listening = True
typed_keys = []
with Listener(on_press=on_press) as listener:
listener.join()Testing code received string ##tteessttssttrriinngg instead of #teststring. I changed my AutoHotKeys script to repeat twice all letters and is working again. Looks like your application changing input for applications like AutoHotKeys.
Could you look into this issue or at least elaborate how debug this issue? I know python and I can help but I'm still learning your project.
Best Regards
Metadata
Metadata
Assignees
Labels
No labels