Make Application in RDP lose focus if RDP loses focus

Wasay Khan 1 Reputation point
2022-11-14T15:03:58.807+00:00

So i'am a software developer and working on an app that we host on Remote Desktops.
What i want to do is that if I (or the Customer) clicks out of RDP, the RDP will lose focus on their own personal system, but the application open inside the RDP will not lose focus.
Is there a way to make it work like if a person clicks out of RDP (RDP loses focus), the applications inside the RDP also loses focus. I can write a script or a service if i have to but i have no idea where to look or start. If you someone knows about a registry flag or knows something, can you please tell me.

Thanks.
Abdul Wasay.

Remote Desktop
Remote Desktop
A Microsoft app that connects remotely to computers and to virtual apps and desktops.
4,783 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.