is it possible to control mute state of all apps in voume mixer?
ex. i want toggle mute everything except one app in volume mixer when pressing a hotkey.
volume mixer mute exception
- Masonjar13
- Posts: 1555
- Joined: 20 Jul 2014, 10:16
- Location: Не Россия
- Contact:
Re: volume mixer mute exception
Sure, shouldn't be hard to write something up using this function. You should be able to get all windows via WinGet, List. To get only the ones listed in the mixer, you'll probably have to actually open the mixer and grab the names from the controls. At least, I can't think of any other ways to avoid iterating through every windows.
Re: volume mixer mute exception
I see, but the fact is that it is all dynamic. there could be 10 apps in there or there could be only one.
do I have to code for every single app specificaly ?
I really hoped that there was a way to exclude a specific app from mute and mute all others .
there isn't a reverse type of thing , right?
do I have to code for every single app specificaly ?
I really hoped that there was a way to exclude a specific app from mute and mute all others .
there isn't a reverse type of thing , right?
- Masonjar13
- Posts: 1555
- Joined: 20 Jul 2014, 10:16
- Location: Не Россия
- Contact:
Re: volume mixer mute exception
Not understanding what you mean. You simply give it a window name to match, be sure to set the SetTitleMatchMode appropriately, and while you're looping through all the windows, when that window matches, just have it skip.
semi-pseudo-code:
semi-pseudo-code:
Code: Select all
setTitleMatchMode,2
loop {
; ...
if(winName="Notepad") ; if the word "Notepad" appears anywhere in the title
continue
muteWindow(winName)
}