I'm looking for a way, tool or command line, to mute sound that doesn't come from the focused window.
I have an application that I have to start 4 times. Each window has the same name so I change the Window title to Alpha, Bravo, Charlie and Delta.
All these windows make sound (chat) and I can mute them separately in the windows playback mixer or nearly any tool that manages sound levels in Windows 10.
What I am looking for is a way to mute all windows except the one that has focus. The windows cannot be identified by application name because it is 4 times the same.
For a command line this would be an example (switching is done via script because more actions has to be taken care of):
whatevercommand mute Alpha
whatevercommand unmute Beta
The probably best tool would be the one that detects a window title change of the focused window and mutes what isn't focused and only unmute the active one.
I have spend 3 days on the Internet to search for a good solution but can't find one.
Who can help a searching soul?
Thanks in advance