Skip to content

Instantly share code, notes, and snippets.

@therealchjones
therealchjones / keycodes.py
Last active November 15, 2025 17:36
Keycodes for Parallels Desktop
#!/usr/bin/env python3
# Parallels Virtualization SDK 17 for Mac:
# https://www.parallels.com/download/pvsdk17/
import prlsdkapi
import string
# Using Parallels SDK to send keycodes/keystrokes to Parallels Desktop virtual
# machine example ("Creating a Simple OS Installation Program"):
# https://download.parallels.com/desktop/v17/docs/en_US/Parallels%20Virtualization%20SDK%20Programmer's%20Guide/27991.htm