1
0
mirror of https://github.com/aidygus/LinVAM.git synced 2024-11-23 09:18:04 +11:00

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 (!) - added confirmation dialog for removing a profile (!)
- copy existing profile. added a copy button to the main menu - copy existing profile. added a copy button to the main menu
- properly shutdown audio recording stream - properly shutdown audio recording stream
- updated gitignore to ignore audio files
### Dependencies ### Dependencies
- ffplay - ffplay
@ -62,3 +63,4 @@
i gave julius-speech a quick try. its pretty easy to setup and looks promising, but it 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 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 # try to help: if -noroot is supplied, but no xdowindowid, try to determine the id
# Elite Dangerous only # Elite Dangerous only
try: try:
args = shlex.split('xdotool search --name "(CLIENT)"') args = shlex.split('xdotool search --name "\(CLIENT\)"')
window_id = str(subprocess.check_output(args)) window_id = str(subprocess.check_output(args))
window_id = window_id.replace('b\'', ''); window_id = window_id.replace('b\'', '');
window_id = window_id.replace('\\n\'',''); 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)) os.system('xdotool' + window_cmd + ' keyup ' + str(w_key))
print("released key: ", w_key) print("released key: ", w_key)
elif w_type == 10: elif w_type == 10:
print('xdotool ' + window_cmd + ' key ' + str(w_key))
os.system('xdotool' + window_cmd + ' key ' + str(w_key)) os.system('xdotool' + window_cmd + ' key ' + str(w_key))
print("pressed and released key: ", w_key) print("pressed and released key: ", w_key)
else: else: