API:sendkey I would like to know if it supports delayed key release

hyjaer

New Member
Jul 14, 2023
1
0
1
Seeking Help

I need some assistance regarding the API sendkey. I would like to know if it supports delayed key release. Specifically, I need to hold down a key for a certain period of time, such as 3 seconds.

For example, I would like to achieve something like this: pvesh set /nodes/{node}/qemu/{vmid}/sendkey --key x --holdtime 3000

If this functionality is not available, I would greatly appreciate any suggestions or solutions you might have.

Thank you in advance for your help.
 
Hello,

currently this is not possible, as the underlying QEMU monitor command does not support anything like that.
If you are trying to enter a key combo, please be aware that you can do that without holding keys: e.g. --key ctrl-alt-f1