Imager-Screenshot
view release on metacpan or search on metacpan
Screenshot.pm view on Meta::CPAN
On OS X, you can grab the display from an ssh session as long as the
ssh session is under the same user as the currently active user on the
display.
Grabbing the root window on a rootless server (eg. Cygwin/X) may not
grab the background that you see. In fact, when I tested under
Cygwin/X I got the xterm window contents even when the Windows
screensaver was running. The root window captured appeared to be that
generated by my window manager.
Grabbing a window with other windows overlaying it will capture the
content of those windows where they hide the window you want to
capture. You may want to raise the window to top. This may be a
security concern if the overlapping windows contain any sensitive
information - true for any screen capture.
=head1 LICENSE
Imager::Screenshot is licensed under the same terms as Perl itself.
=head1 TODO
( run in 0.312 second using v1.01-cache-2.11-cpan-49f99fa48dc )