Skip to content Skip to sidebar Skip to footer

Programmatically Adjust The Volume On My Windows 7 Computer

I was wondering if it was possible to make a Tkinter scale correspond with the volume of the computer. In other words, by dragging the scale up, could the volume of the computer i

Solution 1:

See Changing master volume level for how to do this in C and then mix with How to use win32 API's with python. Then bind your resulting callbacks to Tkinter gui events.

Solution 2:

I know that this is an old question, but the top answer is out of the scope of most people's abilities. I write in python to avoid C, not to embrace it.

The realistic best answer is to install something for the command line (e.g. Nircmd) and then to use subprocess (preinstalled) to call it e.g.subprocess.getoutput("nircmd setsysvolume 0") Hope this helps anyone else who finds it.

Post a Comment for "Programmatically Adjust The Volume On My Windows 7 Computer"