0

I used to have a Logitech K520 keyboard. I usually work connected to a remote server using "remote desktop." With the Logitech keyboard, the media keys (like volume) work on my computer even when connected to the remote server in full screen.

I have changed my keyboard to a Corsair k68 mechanical keyboard. With this new keyboard, the media keys do not work when connected to the remote server via RDP.

Does anyone know how to configure these keys to work only for the local computer instead of the remote servers?

harrymc
  • 498,455

2 Answers2

1

You can block the media keys from reaching RDP and do the change yourself. You may use for that the free AutoHotkey, which hooks the keyboard keys at a very low level.

The following example script will show how to intercept the volume media keys to change the volume by increments of 2. Other media keys can also be hooked in this way. This will disable the Volume Pop-Up Display of Windows.

Volume_Down::SoundSet, -2 ; Volume down key : Reduce sound volume by 2
Volume_Up::SoundSet, +2   ; Volume up key : Increase sound volume by 2

After installing AutoHotKey, put the above text in a .ahk file and double-click it to test. You may stop the script by right-click on the green H icon in the traybar and choosing Exit. To have it run on login, place it in the Startup group at C:\Users\USER-NAME\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup.

Useful AutoHotkey documentation:

harrymc
  • 498,455
1

See here: https://superuser.com/a/1705487/1668883
It's AutoHotkey based, just like harrymc's solution. Since I'm not allowed to comment yet (lack of reputation), I'll explain here why it doesn't work: The remote desktop window seems to rebind all keys every time it becomes the active window, which in turn disables AHK-bound hotkeys. To make AHK hotkeys work inside the remote desktop window, you need to toggle Suspend on and off after activating the window.

Neon
  • 156