Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

trying to emulate shift+end with autokey

I'm trying to assign the key shift+end to alt+shift+pageDown.

I have the following script:

keyboard.send_key('<shift>+<end>')

And I tried several variants, like:

keyboard.send_key('<shift+end>')
keyboard.send_key('shift+end')
etc...

none of them seems to work.

I had a look at this docs: https://github.com/boppreh/keyboard#api and also this: https://pypi.org/project/keyboard/ but many of those methods just don't seem to work (keyboard.send, keyboard.press, keyboard.release, etc.). It looks like my hotkey installation is using a different version of the keyboard library.

Also tried with (from this question):

keyboard.press_key('<shift>')
keyboard.send_key('<end>')
keyboard.release_key('<shift>')

But they seem to miss the pressed shift, it's just like pressing the end key.

Is there some way I could find out with keyboard library I am using, so that I could find the corresponding documentation?

using autokey-gtk 0.95.1, autokey-common 0.95.1 on ubuntu 18.04.2

like image 840
opensas Avatar asked Sep 07 '25 17:09

opensas


1 Answers

I had to use the following

keyboard.send_keys("<shift>+<end>")
like image 172
opensas Avatar answered Sep 10 '25 10:09

opensas