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?
Save up to 50% on our desktop apps during our big Year End Sale!Save up to 50% on our desktop apps during our big Year End Sale, including DisplayFusion, ClipboardFusion, FileSeek, LogFusion, TrayStatus, and VoiceBot!Save up to 50% on our desktop apps during our big Year End Sale!

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);
    }
}