SetMasterVolume in Windows 7
Posted: Thu Dec 22, 2011 4:05 pm
I'd like to set my media center's volume level to a value which is stored in a variable.
Unfortunately, the python command eg.WinApi.SoundMixer.SetMasterVolume(77%, 0) produces the following error:
eg.WinApi.SoundMixer.SetMasterVolume(77%, 0)
Error in Action: "eg.WinApi.SoundMixer.SetMasterVolume(77%, 0)"
Traceback (most recent call last) (1534):
File "<string>", line 1
eg.WinApi.SoundMixer.SetMasterVolume(77%, 0)
^
SyntaxError: invalid syntax
Do you know the correct syntax?
Thx, G.
Unfortunately, the python command eg.WinApi.SoundMixer.SetMasterVolume(77%, 0) produces the following error:
eg.WinApi.SoundMixer.SetMasterVolume(77%, 0)
Error in Action: "eg.WinApi.SoundMixer.SetMasterVolume(77%, 0)"
Traceback (most recent call last) (1534):
File "<string>", line 1
eg.WinApi.SoundMixer.SetMasterVolume(77%, 0)
^
SyntaxError: invalid syntax
Do you know the correct syntax?
Thx, G.