title: AutoHotKey run program on any key
body: <p>I'd like to run a program when any key is pressed with AutoHotKey</p>
  
  <p>Something like:</p>
  
  <pre><code>AnyKey::Run, D:\my\program\to\run\on\any\key.bat
  </code></pre>
  
  <p>EDIT2:
  This code is working perfectly:</p>
  
  <pre><code> #InstallKeybdHook
  
  SetTimer, AnyKeyPressed, 100
  
  AnyKeyPressed:
      if( A_TimeIdlePhysical &lt; 100 ){
          Run, D:\my\program\to\run\on\any\key.bat
  }
  
  ^!p::pause
  </code></pre>