Processing Ajax...

Title
Close Dialog

Message

Confirm
Close Dialog

Confirm
Close Dialog

Decrease Application Volume

Description
Decreases the currently focused application's volume by 2
Language
C#.net
Minimum Version
Created By
Christian H.
Contributors
-
Date Created
Aug 15, 2017
Date Last Modified
Mar 10, 2022

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);
		decimal changeBy = -0.02m;

		BFS.Audio.SetApplicationVolume(appID, BFS.Audio.GetApplicationVolume(appID) + changeBy);
	}
}