Skip to content
This repository has been archived by the owner. It is now read-only.
Control your volume mixer on windows with Python 3
Branch: master
Clone or download
Latest commit 9b0527b Dec 19, 2016
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore Initial commit Jan 6, 2016
LICENSE Initial commit Jan 6, 2016
README.md Update README.md Jan 6, 2016
keyboard.py Typo ln 107 Dec 19, 2016
main.py Initial commit Jan 6, 2016
sound.py Initial commit Jan 6, 2016

README.md

Windows-Sound-Manager

Control your volume mixer on Windows with Python 3

How it works

This script emulates keystrokes using the built in windows VK_VOLUME_MUTE, VK_VOLUME_DOWN and VK_VOLUME_UP keys, which are used to control the default audio settings.

Why would I use this?

As I found out, changing your audio settings programmatically with programming language is incredibly tedious. It requires knowledge of tons of DLL's and tens to force you to change the sound on every single device at hardware level individually. By using a small hack that uses the built in media keys, you can avoid all of this by using something which was built into the OS already.

This isn't a fool-proof solution, but it works if you just need to build a quick application that requires your sound to to controlled with code.

Specifications

  • Tested on: Windows 10
  • Python version: Python 3.5

Links

You can’t perform that action at this time.