Send a Keyboard Event to a Virtual Machine

prlctl send-key-event <VM ID> -k,--key <key> | -s,--scancode <scancode> [-e,--event <press|release>] [-d,--delay <msec>]

Sends a single keyboard event (key press or release) identified with a specific key code or scancode to a specified virtual machine with a specified delay (in milliseconds).

prlctl send-key-event <VM ID> -j,--json

Sends a sequence of keyboard events by reading JSON input from stdin. Example of the format is:

[
	{ "key": 13 },
	
	{ "key": 7, "event": "press" },

	{ "scancode": 7, "event": "release", "delay": 100 },

	{ "delay": 100 },

	{ "k": 50, "event": "press", "delay": 100 },
	{ "s": 10, "event": "release", "d": 100 },
]

Last updated