I want to send alt+f7
keys from autokey
. Following are the code samples which I tried:
keyboard.send_keys("<alt>+<f7>")
keyboard.send_key("<alt>+<f7>")
keyboard.fake_keypress("<alt>+<f7>")
I tried with repeat=1
also. It doesn't seem to work. Can anyone tell me how to make this work?
This script worked for me on Ubuntu 18.04 and autokey-gtk 0.90.4:
I observe about a second delay though before the script executes. Maybe its just on my computer.
It seems that Ubuntu 16.04 doesn't allow the system wide keyboard shortcuts to be emulated by autokey.
Autokey scripts are plain Python files. Autokey uses Python scripting engine. So please check your script by running directly in Python and if it works there then it will work in Autokey too.
You can also try