title: Fixing mouse double click bug with autohotkey
body: <p>My mouse is a little old and started annoying me with double click when I just press one click, then I coded this snippet to block clicks that happens to fast, which works:</p>
  
  <pre><code>lastClick := A_TickCount
  LButton::
      ElapsedTime := A_TickCount - lastClick
      If ElapsedTime &gt; 50
          send {LButton}
      Else
          lastClick := A_TickCount
  Return
  </code></pre>
  
  <p>However, now I am unable to drag anything with my mouse.</p>
  
  <p>I'm out of ideas to handle it, I appreciate any ideas. Thanks for your time.</p>