title: Capturing screenshot of windowed OpenGL window in AutoIt?
body: <p>For my graphics class, I need to match an OpenGL sample output in a pixel-perfect way.</p>
  
  <p>I figured it would be cool if I could spawn the sample, send it some input, then take a screenshot of the exact OpenGL area, do the same for mine, and then just compare those screenshots. I also figured something like AutoIT would be the easiest way to do something like this.</p>
  
  <p>I know that I can use the screencapture function, but I'm unsure of how to get the exact coordinates and size of the OpenGL area of the window (not the title bar/surrounding window stuff).</p>
  
  <p>If anybody could help me out that would be awesome. 
  Or if anybody can think of an easier solution than AutoIt, and can point me in the right direction, that'd be great too.</p>
  
  <p>EDIT: I also don't have access to the source code of the sample output program.</p>