Page 1 of 1

AutoHotKey with Remote Desktop (RDP)

Posted: 11 Aug 2017, 11:14
by ronb
When I sit down at my desk in the morning, I VPN/RDP from my home computer to my work computer. I work in that RDP session (remote desktop) in full screen so all my keystrokes go to the remote computer.

I want to catch the volume up, volume down, and volume mute keys on my keyboard and redirect those to my local PC. By default, those keys change the volume on my remote computer when I'm in the remote desktop session.

Is there a way to get AutoHotKey to catch those keys and change the volume on my local computer instead of changing the volume on the remote computer?

Thanks for you help.

Re: AutoHotKey with Remote Desktop (RDP)

Posted: 11 Aug 2017, 20:16
by Masonjar13
I use alternate programs for remote control than the standard RDP, so I can't say if it'll work, but you could try making hotkeys that set the volume manually. Run it AFTER starting the RDP session, so the hook takes precedence (may or may not be needed).

Code: Select all

$volume_up::soundSet,+2
$volume_down::soundSet,-2

Re: AutoHotKey with Remote Desktop (RDP)

Posted: 11 Aug 2017, 21:14
by Xtra
I just tested the above hotkeys:
oVPN-->standard RDP-->Fullscreen = no go.
oVPN-->standard RDP-->Maximized = works.

HTH

Re: AutoHotKey with Remote Desktop (RDP)

Posted: 11 Aug 2017, 21:21
by Masonjar13
Hm. What about borderless fullscreen? (maximized resized to the entire screen, remove the caption)

Re: AutoHotKey with Remote Desktop (RDP)

Posted: 12 Aug 2017, 13:06
by HelloHello
Can't you set whether volume controls operate on the remote or local machine in the settings of RDP? It's been a while since I've used it but I remember there is a tab to differentiate whether certain things go to the remote session or not.

Re: AutoHotKey with Remote Desktop (RDP)

Posted: 12 Aug 2017, 19:22
by TimeHorizon
If the RDP is connected to a network drive, can you have a script running

On the RDP that does;
Hotkey::
FileAppend, VolUp, mydoc.txt

on your PC that does

Loop
fileread, mydoc.txt

If In string, X
volUp


just an idea :P