title: Autohotkey: binding win key
body: <p>I've got a keyboard without the Win key (a legendary Model M!), so I want to bind it to <kbd>ctrl</kbd> <strong>+</strong> <kbd>esc</kbd>.</p>
  
  <p>I tried those things, but that doesn't work -_-</p>
  
  <pre><code>LCtrl &amp; Escape::LWin
  </code></pre>
  
  <p>or</p>
  
  <pre><code>LCtrl &amp; Escape::
  Send {LWin}
  return
  </code></pre>
  
  <p>If I simply do:</p>
  
  <pre><code>Escape::LWin
  </code></pre>
  
  <p>or</p>
  
  <pre><code>Escape::
  Send {LWin}
  return
  </code></pre>
  
  <p>It's OK...</p>
  
  <p>I also got another function that works OK like this:</p>
  
  <pre><code>^!F2::Send {Volume_Up 100}
  </code></pre>
  
  <p>So right now, can't figure what's wrong... Probably the misuse with the "&amp;"?</p>
  
  <p>Any idea?</p>
  
  <p>Thank you!</p>
  
  <hr>
  
  <p>After answer 1: I found this solution if I want to use the win key for combination (Win + e, Win + d, etc.):</p>
  
  <pre><code>^Esc::
  KeyWait Ctrl        ;wait until Ctrl is up
   Send {LWin Down}   ;send left Windows key down
   sleep, 500
   Send {LWin Up}     ;send left Windows key up
  Return
  </code></pre>
  
  <p>That way, when I depress <kbd>ctrl</kbd>, I've got 500ms to type the 2nd key.</p>