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
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%
Compiled on Windows 10 in Visual Studio 2019 Community Edition.
Or download from releases.