vncdotool icon indicating copy to clipboard operation
vncdotool copied to clipboard

"ctrl+S" keyPress on VNCdotool api.

Open xChapx opened this issue 6 years ago • 2 comments

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.

xChapx avatar Dec 31 '18 15:12 xChapx

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.

sibson avatar Jan 15 '19 03:01 sibson

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.

sibson avatar Jan 15 '19 03:01 sibson