title: How to mute/unmute sound using pywin32?
body: <p>My searches lead me to the Pywin32 which should be able to mute/unmute the sound and detect its state (on Windows 10, using Python 3+). I found a way using an AutoHotkey script, but I'm looking for a pythonic way.</p>
  
  <p>More specifically, I'm not interested in playing with the Windows GUI. <em>Pywin32 works using a Windows DLL</em>.</p>
  
  <p>so far, I am able to do it by calling an ahk script:</p>
  
  <p>In the python script:</p>
  
  <pre><code>import subprocess
  subprocess.call([ahkexe, ahkscript])
  </code></pre>
  
  <p>In the AutoHotkey script: </p>
  
  <pre><code>SoundGet, sound_mute, Master, mute
  if sound_mute = On ; if the sound is muted
  Send {Volume_Mute} ; press the "mute button" to unmute
  SoundSet 30 ; set the sound level at 30
  </code></pre>