volume mixer mute exception

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
apoklyps3
Posts: 116
Joined: 13 Feb 2016, 13:20

volume mixer mute exception

23 Jan 2018, 06:58

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.
User avatar
Masonjar13
Posts: 1555
Joined: 20 Jul 2014, 10:16
Location: Не Россия
Contact:

Re: volume mixer mute exception

23 Jan 2018, 07:25

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.
OS: Windows 10 Pro | Editor: Notepad++
My Personal Function Library | Old Build - New Build
apoklyps3
Posts: 116
Joined: 13 Feb 2016, 13:20

Re: volume mixer mute exception

23 Jan 2018, 08:30

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?
User avatar
Masonjar13
Posts: 1555
Joined: 20 Jul 2014, 10:16
Location: Не Россия
Contact:

Re: volume mixer mute exception

23 Jan 2018, 20:29

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:

Code: Select all

setTitleMatchMode,2

loop {
    ; ...
    if(winName="Notepad") ; if the word "Notepad" appears anywhere in the title
        continue
    muteWindow(winName)
}
OS: Windows 10 Pro | Editor: Notepad++
My Personal Function Library | Old Build - New Build

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: aitaixy, dipahk, Google [Bot] and 229 guests