title: autoit window screen shot sucess/fail
body: <p>My goal is to make a GUI looping print screens from the desktop and all processes being used. The only problem I'm having right now is: Some processes don't have any viewable interface (OS processes for example).</p>
  
  <p>I am using these commands to capture the screen:</p>
  
  <pre><code>_ScreenCapture_Capture(@MyDocumentsDir &amp; "desktop.jpg")
  _ScreenCapture_CaptureWnd(@MyDocumentsDir &amp; "process.jpg", _
                            $processes[$window], -1, -1, -1, -1, True)
  </code></pre>
  
  <p>But as I said, there are programs without an Interface which would return a fail in the _ScreenCapture command. Is there a way to know if a process has a user-interface?</p>