title: Check if window has focus with AutoIt
body: <p>I wonder if it is possible to check to see if a window has focus in AutoIt. I have checked and not found much. I have tried using WinSetOnTop but this didn't seem to do anything so then I considered using WinActivate but this didn't seem to do what I need. </p>
  
  <p>The reason I want to do this is because I have this application I am  writing as a prank and I do not want the co-worker on whom I'm playing the prank to just ignore the window when it starts automatically. I am wanting to put a shortcut to it in the startup folder and we have several applications that run on startup and so I want mine to either always be on top or audibly shout rude words at the user if they try and ignore the application.</p>
  
  <p>Is this possible and, if so, can you help me out because I am out of ideas.</p>