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
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!