vncdotool
vncdotool copied to clipboard
"ctrl+S" keyPress on VNCdotool api.
On vncdotool-0.12.0 I want to use the keyPress feature to send ctrl+S but it just types "c t r l s", when I create a client object I cant seem to use all the functions that are on the client.py file.
My question is, with the api how I can send special cases like ctrl+s or alt+f4.
---Edit---
Been reading the client.py file, the KEYMAP dictionary it uses a library named rfb.py, so each keymap haves a code like '0xffe4', tried to use the code directly with a keypress and didnt work.
I can only send letters, but when i want to send enter or backspace it doesn't work.
This should work, https://github.com/sibson/vncdotool/blob/master/vncdotool/client.py#L154 converts ctrl-s
to the right set of keysyms regardless of if you are using the CLI or API.
This should work, https://github.com/sibson/vncdotool/blob/master/vncdotool/client.py#L154 converts ctrl-s
to the right set of keysyms regardless of if you are using the CLI or API.