On 27/02/2008, <b class="gmail_sendername">aidy lewis</b> <<a href="mailto:aidy.lewis@googlemail.com">aidy.lewis@googlemail.com</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<p>Does anyone know how to print a windows screenshot in Ruby and append it to a file?</p></blockquote><div>Not really sure what you want exactly, but I suspect that something
like the win32ole library might give you access to the windows
clipboard etc...  Then it's just a case of working out how to force a print screen via win32ole calls and then get at the contents of the
clipboard as an array of bytes.  You can then use standard ruby stuff to shoot those bytes into a file.  That said, there might even be a win32ole call to put contents of clipboard straight into a file.<br><br>MSDN is probably your best bet.<br>
<br>Apologies if I'm completely on the wrong track here.<br><br>Muz<br></div><br></div><br>