How make Copy/Paste on VNC kvm in proxmox

Old thread but for anyone still fighting with this I created a little autohotkey v2 script that essentially simulates the keypresses of what's in the clipboard effectively automating typing the content into the VM for you. Been working great for this. I have the hotkey bound to ctrl+alt+v but you can set it to whatever you like by altering the first line. In autohotkey script ^ is ctrl, ! is alt, + is shift, and # is the win key.

Code:
^!v:: { ; Ctrl+Alt+V will trigger this script
    text := A_Clipboard
    if (text == "") {
        MsgBox "Clipboard is empty or not accessible."
    } else {
        text := StrReplace(text, "`r`n", "`n")  ; Normalize line endings
        Loop Parse, text
        {
            SendText(A_LoopField)
            Sleep 10  ; Add a small delay between each keypress to avoid overwhelming the VM
        }
    }
}
 

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!