Small fix in finding correct ED game window, added pressed key output to shell

This commit is contained in:
smirgol 2020-06-17 01:00:41 +02:00
parent 7b4ae4d3e7
commit 4ec945f99e
3 changed files with 4 additions and 3 deletions

View File

@ -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. :)
english speaker, my pronounciation is not the best sometimes, which doesn't help. :)
- look into make recognized words using regex expressions

View File

@ -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\'','');

View File

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