in reply to Using Win32::GUI::DIBitmap for screen capture
This results in:use Win32::GUI; use Win32::GUI::DIBitmap; use Win32::GuiTest qw(FindWindowLike GetWindowText); my @windows = FindWindowLike(0, qr/^search.cpan.org/); my $hdc = Win32::GUI::DC->new($windows[0]->{handle}); print "hcd is $hdc\n"; print "Window name is '" . GetWindowText($windows[0]) . "'\n"; my $bmap = newFromDC Win32::GUI::DIBitmap ($hdc); print "bmap is $bmap\n";
Cheers,C:\code>perl dibitmap.pl hcd is 318833948 Window name is 'search.cpan.org: The CPAN Search Site - Microsoft Inte +rnet Explo rer' bmap is Win32::GUI::DIBitmap=SCALAR(0x2251a4)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Using Win32::GUI::DIBitmap for screen capture
by ChrisR (Hermit) on Jul 29, 2005 at 19:39 UTC | |
|
Re^2: Using Win32::GUI::DIBitmap for screen capture
by critter (Acolyte) on Jul 31, 2005 at 19:53 UTC |