mirror of
https://github.com/aidygus/LinVAM.git
synced 2024-11-23 01:08:06 +11:00
Small fix in finding correct ED game window, added pressed key output to shell
This commit is contained in:
parent
7b4ae4d3e7
commit
4ec945f99e
@ -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
|
||||
@ -62,3 +63,4 @@
|
||||
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. :)
|
||||
- look into make recognized words using regex expressions
|
2
main.py
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\'','');
|
||||
|
@ -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…
Reference in New Issue
Block a user