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?

Confirm

Are you sure?

Mute/Unmute Audio

Description
This script will toggle mute on the current audio output device.
Language
C#.net
Minimum Version
Created By
Tommy21
Contributors
-
Date Created
May 23, 2025
Date Last Modified
May 23, 2025

Scripted Function (Macro) Code

using System;
using System.Drawing;

public static class DisplayFusionFunction
{
    public static void Run(IntPtr windowHandle)
    {
        // Get the current mute state and toggle it
        bool isCurrentlyMuted = BFS.Audio.GetMute();
        BFS.Audio.SetMute(!isCurrentlyMuted);
    }
}