MuteActiveWindow is an AutoHotkey script that allows you to mute the currently active window using a custom hotkey. F1 by default!
This script was inspired by kristoffer-tvera/mute-current-application but was rewritten for svcl because the previous version didn't work for me with the majority of UWP and some other apps.
Before using this script, make sure you have the required tools and files in place.
svcl.exe
(64 bit) tool from here or direct link and place it in the same directory as the AutoHotkey script (MuteActiveWindow.ahk
).Follow these steps to set up the script:
Clone or download this repository to your computer.
If there is no svcl in directory place the svcl.exe
tool in the same directory as the AutoHotkey script (MuteActiveWindow.ahk
).
To mute the active window, use the predefined hotkey (you can customize it in the script). When you press the hotkey, the active window's audio will be muted.
Change the hotkey by editing the "Hotkey.txt" file (located in the /Config directory) and replacing its contents with your desired hotkey (e.g., "F10").
You can configure the script to exclude specific applications from being muted. Exclusions are useful if you want to prevent certain apps from being affected by the script. Here's how you can add exclusions:
Open the ExcludedApps.txt
file located in the "Config" folder.
Add the exe's of the applications you want to exclude, each on a separate line, in the following format: You can get UWP exe's with this script from uwp-exe branch link or use CTRL+ALT+P hotkey (on MAW v7.1.0+)
Brave.exe
Spotify.exe
Save the ExcludedApps.txt
file.
Reload the script (or press the hotkey if it's already running) for the changes to take effect.
Now, the specified applications will be excluded from the script's muting behavior.
Examples:
Suppose you want to exclude Brave (Brave.exe
) and Xbox (Xbox
) from being muted. Your ExcludedApps.txt
file would look like this:
Brave.exe
XboxPCApp.exe
This will ensure that the script doesn't mute Brave.exe and Xbox when the hotkey is pressed.
You can choose to run the script at startup either automatically or manually.
AutoEnableStartup.bat
located in the script directory. This batch file will automatically move the required files to the Startup folder for you.Now, the script will run automatically each time you start Windows without the need for manual intervention.
Press Win + R
to open the Run dialog.
Type shell:startup
and press Enter. This will open the Startup folder for the current user.
Create a shortcut to the MuteActiveWindow.ahk
script in this folder. You can do this by right-clicking the script file and selecting "Create shortcut," then move the shortcut to the Startup folder.
Now, the script will run automatically each time you start Windows.
Updating your MuteActiveWindow script or custom executable pairs is now even more convenient with the latest v5.0.0 update:
The script will now automatically check for updates on startup, unless you've explicitly disabled this feature in the Config/AutoUpdateCheck.txt
file.
You have two options for manual updates:
This project is licensed under the GNU General Public License version 3 (GPL-3.0).