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?

Set Volume to 20%

Description
This script will set the system volume to 20%.
Language
C#.net
Minimum Version
Created By
Keith Lammers (BFS)
Contributors
-
Date Created
Apr 25, 2017
Date Last Modified
Apr 25, 2017

Scripted Function (Macro) Code

using System;
using System.Drawing;

public static class DisplayFusionFunction
{
	public static void Run(IntPtr windowHandle)
	{
            // Set the volume to 0 so we have a baseline
            BFS.Audio.SetVolumeMin();
            
            // Increase the volume 10 steps (Windows increases volume by 2 each step)
            for (int i = 0; i < 10; i++)
                BFS.Audio.AdjustVolumeUp();
	}
}