title: Programmatically take ScreenShot of Desktop in Ruby?
body: <p>I asked this question about <a href="https://stackoverflow.com/questions/1632836/how-to-programmatically-take-snapshot-of-crawled-webpages-in-ruby">taking a picture of a webpage programmatically</a>, and I've downloaded and got <a href="http://www.paulhammond.org/webkit2png/" rel="nofollow noreferrer">webkit2png</a> working (taking pictures of HTML pages like blogs and whatnot).  So cool, thanks for showing me that!</p>
  
  <p>Now I would like to start doing more, like being able to take pictures of Flash websites after they have loaded, and of my desktop.</p>
  
  <p>Is it possible to take pictures of Flash websites with webkit2png (considering you might have to wait a few seconds for it to load)?</p>
  
  <p>But the main question is, how do I programmatically take pictures of the desktop?  That would allow me to have much more control over what's going on.</p>