Browse Source

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

pull/3/head
smirgol 1 year ago
parent
commit
4ec945f99e
  1. 4
      changes.md
  2. 2
      main.py
  3. 1
      profileexecutor.py

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

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

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

Loading…
Cancel
Save