From: Patrick Spence Date: 2006-09-28T02:17:47+09:00 Subject: Re: Good ruby/watir image libary/package Richard Conroy wrote: > I thought that WATIR already had some basic screencapture stuff > built-in? > > Probably quite primitive though. We opted for SnagIt because of it's ability to capture a scrolling page, from top to bottom, capturing the entire page. I've been using SnagIt since version 5.x, when it didn't have the automation capabilities, which meant resorting to DDE... ugly! The ScreenCapture class I mentioned earlier handles all the "grunt" work of capturing the screen, saving it to a file, then opening the file in binary mode, read in each byte and store it in an image type field in a SQL Server table. I would've rather done away with all disk I/O stuff, but couldn't come up with a means to collect the image directly from the clipboard. Most of the Ruby modules that address the Windows clipboard seem to cater to text, vs. images. In any case, it's pretty damned quick, and... "if it ain't broke, don't fix it!" -- Posted via http://www.ruby-forum.com/.