Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

pjf (2464)

pjf
  (email not shown publicly)
http://pjf.id.au/
AOL IM: miyuki3k (Add Buddy, Send Message)
Jabber: pjf@jabber.org

I run Perl Training Australia [perltraining.com.au].

I help with Melbourne Perl Mongers.

I spend an awful lot of time talking about Perl, and have had my picture in the Australian newspapers with a camel. That's rather scary.

Journal of pjf (2464)

Thursday October 13, 2005
07:41 PM

Win32::Screenshot

[ #27160 ]

Win32::Screenshot
I've just discovered Win32::Screenshot, a Perl module that not only allows one to capture the entire screen, but more importantly makes it easy to capture individual windows, or portions of windows.

Installation of the module was a bit of a pain. Even though there is a ppd file at http://theoryx5.uwinnipeg.ca/ppms/Win32-Screenshot.ppd it depends upon PerlMagick, which under more recent releases is properly named Image::Magick and can be selected as part of the windows ImageMagick installer. I quickly hacked together my own ppd file that simply omits the dependency section. Besides from that, the whole thing worked like a charm.

So why is Win32::Screenshot so useful? Well, a lot of Windows programs have no command-line interface. If you want to communicate with them, you have no choice but to use the GUI. That's fine for humans, but what if you want to perform automated testing, or automatically watch a window for a particular event? Then Win32::Screenshot, especially in conjunction with Win32::GuiTest, really shines.

I've been joking with my friends that I'm going to use all this to play Puzzle Pirates automatically. In reality I have a much more interesting (but unfortunately secret) project at hand.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.