Skip to content

rahmedd/Windows-Volume-Control

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Windows Volume Control

This is a simple tool for controlling windows master volume through the Windows Core Audio APIs, without emulating multiple volume key presses. This is for applications that require direct control of the volume percentage.

All credits go to the original author of the ChangeVolume function, Sayyed Mostafa Hashemi from codeproject.com

Usage

Runs the executable with percentage as an argument.

Command Prompt:

volctrl.exe 35

Python 3:

import subprocess

percentage = 0
for i in range(3):
	subprocess.run("volctrl.exe " + str(percentage), shell=True)
	percentage += 10 #increases volume by 10%

Compiling

Compiled on Windows 10 in Visual Studio 2019 Community Edition.

Or download from releases.