title: With AutoHotKey, how to use ctrl+alt in hotkey without system seeing them as down when sending other keys?
body: <p>I'm trying to map <kbd>ctrl</kbd>+<kbd>alt</kbd>+<kbd>d</kbd> to <kbd>delete</kbd>.  Unfortunately, when I press that combination, the system sees <kbd>ctrl</kbd>+<kbd>alt</kbd>+<kbd>delete</kbd>, which naturally brings up the lock screen.</p>
  
  <p>I've tried this to make the <kbd>ctrl</kbd> and <kbd>alt</kbd> keys look up to the system, but it didn't work:</p>
  
  <pre><code>^!d::Send {Alt Up}{Ctrl Up}{Delete}
  </code></pre>
  
  <p>I've tried putting <code>~</code> and <code>$</code> in front of the hotkey, but that didn't work either.</p>
  
  <p>I realize I can use <code>KeyWait</code> to wait for the modifier keys to be released:</p>
  
  <pre><code>~^!d::
  KeyWait Control
  KeyWait Alt
  Send {Delete}
  return
  </code></pre>
  
  <p>But then I can't repeatedly press <kbd>ctrl</kbd>+<kbd>alt</kbd>+<kbd>delete</kbd> to quickly delete characters.  I have to release the modifier keys between each press, which is awkward.</p>
  
  <p>I realize I can simulate a forward delete with a selection to the right followed by a backspace:</p>
  
  <pre><code>^!d::Send {Shift Down}{Right}{Shift Up}{Backspace}
  </code></pre>
  
  <p>But that's a bit kludgy, though it does work without releasing the modifiers.  It's starting to feel like there isn't a way of accomplishing this, so any help would be appreciated. </p>