neon-dev / RDPHotkeyHelper

Listens for media keys when working within a remote desktop session
MIT License
53 stars 4 forks source link

Hyper-V support #7

Closed timtucker-dte closed 10 months ago

timtucker-dte commented 10 months ago

Would be good to add support for virtual machine connections via Hyper-V as well.

Should be relatively simple -- as best as I can tell the windows just end with the title " - Virtual Machine Connection"

Alternately, you could match based on executable: vmconnect.exe

neon-dev commented 10 months ago

New release published, let me know if there are any issues. I could not test vmconnect.exe but since all process names are part of the same pattern, it should be fine (unless vmconnect.exe is not the actual window process).

timtucker-dte commented 7 months ago

Adding as an update:

This works.

In order to intercept keys from the Hyper-V window, though, AutoHotKey has to run the script with admin privileges.

Easiest way I found to do that was to add a scheduled task that launches the script using log on as a trigger.