First time posting. I have been playing around with creating macros that can individually adjust the sound of individual application. Found that Nircmd has the commands that I want for example if I wanted to increase the volume of Example.exe by 20% I can use a batch file that says:
Nircmd.exe changeappvolume Example.exe .2
I have tested this and it works great for changing an app I know I will be using in the background, however I would also like to change the volume of the window that I have open as my focused applications are often games or a variety of other apps. My plan is to bind these batch file to a set of hot keys that run them in the back ground but I would rather not have to write a Macro set for every single primary program.
In theory Nircmd.exe should be able to change the volume of the 'focused window' using:
Nircmd.exe changeappvolume focused .2
however I am having trouble figuring out how to focus the window of an that I am actively using.