title: AutoHotkey. How to make a script trigger every time certain window is active?
body: <p>good people! I'm struggling with a question here.
  I have the following script:</p>
  
  <pre><code>#If WinActive("ahk_class Chrome_WidgetWin_0") || WinActive("ahk_class Chrome_WidgetWin_1") || WinActive("ahk_class MozillaWindowClass") || WinActive("ahk_class IEFrame")
   WinWaitActive, my_window_name_here - Opera, , 2
   Sleep 1000
   #NoEnv
   SendMode Input
   SetWorkingDir, %A_ScriptDir%
   #SingleInstance force
   Send some-text
   Send {TAB}
   Send some-text
   Send {TAB}
   Send some-text
   return
  </code></pre>
  
  <p>It triggers when a certain window in a browser gets active. The problem is, it does it only ONCE. But I need it to trigger EVERY TIME that window/tab gets active. Is that somehow possible?</p>