title: How can I set AutoHotKey's code to run only in chrome?
body: <p>I want to simulate a "find" operation when I double click a word in Chrome.</p>
  
  <p>I've managed to do this : </p>
  
  <pre><code>~LButton::
  SetTitleMatchMode, 2  
  #IfWinActive, ahk_class Chrome
  If (A_TimeSincePriorHotkey&lt;400) and (A_TimeSincePriorHotkey&lt;&gt;-1)
  {
   SendInput ^c
   Sleep, 10
   SendInput ^f
   Sleep, 10
   SendInput ^v
  }
  
  Return
  </code></pre>
  
  <p>But it runs even for  non-chrome process (when double click a word)</p>
  
  <p><strong>Question:</strong></p>
  
  <p>How can I make this script run only when double click in chrome ?</p>