Processing Ajax...

Title

Message

Confirm

Confirm

Confirm

Confirm

Are you sure you want to delete this item?

Confirm

Are you sure you want to delete this item?

Toggle Application Mute

Description
Toggles mute on/off for the currently focused application.
Language
C#.net
Minimum Version
Created By
Christian H.
Contributors
-
Date Created
Aug 15, 2017
Date Last Modified
Aug 15, 2017

Scripted Function (Macro) Code

using System;
using System.Drawing;

public static class DisplayFusionFunction
{
	public static void Run(IntPtr windowHandle)
	{
		uint appID = BFS.Application.GetAppIDByWindow(windowHandle);
		BFS.Audio.SetApplicationMute(appID, !BFS.Audio.GetApplicationMute(appID));
	}
}