From: Harry Date: 2007-03-12T20:35:09+09:00 Subject: Re: Print screen with win32api On 3/12/07, Emil Sandin wrote: > Hi, > I have seen this question on several locations, but no solution to it. I > want to capture the screen on windows xp. I know that you can do it with > rmagick, but that seems to be for unix-systems only, and rubycocoa for > mac. Since there is a "print screen"-button on the keyboard, I guess > that it should be possible to use win32api to fake a klick on the > keyboard button, and then somehow save the image to disk. > > Any ideas? > Regards > Emil I haven't tested this particular command but you should be able to do it with AutoIt. You can script AutoIt via Ruby. Here are some commands. Printscreen is listed. http://tiger.la.asu.edu/Quick_Ref/AutoIt_quickref.pdf Harry -- http://www.kakueki.com/ruby/list.html Japanese Ruby List Subjects in English