From 4ec945f99ea333760246eb59aae79fcfa4aa6717 Mon Sep 17 00:00:00 2001 From: smirgol Date: Wed, 17 Jun 2020 01:00:41 +0200 Subject: [PATCH] Small fix in finding correct ED game window, added pressed key output to shell --- changes.md | 4 +++- main.py | 2 +- profileexecutor.py | 1 - 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/changes.md b/changes.md index a27e3e4..6b8f9fd 100644 --- a/changes.md +++ b/changes.md @@ -34,6 +34,7 @@ - added confirmation dialog for removing a profile (!) - copy existing profile. added a copy button to the main menu - properly shutdown audio recording stream + - updated gitignore to ignore audio files ### Dependencies - ffplay @@ -61,4 +62,5 @@ - look into other text2speech engines i gave julius-speech a quick try. its pretty easy to setup and looks promising, but it also has its problems with detecting some "exotic" words. as not being a native - english speaker, my pronounciation is not the best sometimes, which doesn't help. :) \ No newline at end of file + english speaker, my pronounciation is not the best sometimes, which doesn't help. :) + - look into make recognized words using regex expressions \ No newline at end of file diff --git a/main.py b/main.py index 2ad6d0f..0c5b2b6 100755 --- a/main.py +++ b/main.py @@ -304,7 +304,7 @@ class MainWnd(QWidget): # try to help: if -noroot is supplied, but no xdowindowid, try to determine the id # Elite Dangerous only try: - args = shlex.split('xdotool search --name "(CLIENT)"') + args = shlex.split('xdotool search --name "\(CLIENT\)"') window_id = str(subprocess.check_output(args)) window_id = window_id.replace('b\'', ''); window_id = window_id.replace('\\n\'',''); diff --git a/profileexecutor.py b/profileexecutor.py index 762e677..a70c140 100644 --- a/profileexecutor.py +++ b/profileexecutor.py @@ -291,7 +291,6 @@ class ProfileExecutor(threading.Thread): os.system('xdotool' + window_cmd + ' keyup ' + str(w_key)) print("released key: ", w_key) elif w_type == 10: - print('xdotool ' + window_cmd + ' key ' + str(w_key)) os.system('xdotool' + window_cmd + ' key ' + str(w_key)) print("pressed and released key: ", w_key) else: