title: AutoHotKey: Remap Alt, Ctrl, and Alt+Ctrl
body: <p>I'd like to use AutoHotKey to remap:</p>
  
  <pre><code>RAlt::Volume_Down
  RCtrl::Volume_Up
  RAlt &amp; RCtrl::SendInput {Volume_Mute}
  </code></pre>
  
  <p>While Vol up works fine with the script as above, vol down is non-repeating &amp; mute only works if the buttons are pressed as Alt,Ctrl (not Ctrl,Alt). I understand why, I just haven't been able to come up with a solution. I can map <em>either</em> volume up/down <em>or</em> mute - but if I try to do both, the behavior is always finicky. I think what I need is something to the effect of:</p>
  
  <pre><code>if GetKeyState("RAlt") and GetKeyState("RCtrl")
  {
      SendInput {Volume_Mute}
  }
  else if GetKeyState("RAlt")
  {
      SendInput {Volume_Down}
  }
  else if GetKeyState("RCtrl")
  {
      SendInput {Volume_Up}
  }
  </code></pre>
  
  <p>But this just runs &amp; terminates. Is there a way to achieve what I'm after?</p>