I'm not sure what's wrong with that... the image does end up on the clipboard, but I can't get it back out into $image.
Gives:grabWindowRegion(0, 0,0,64,64); sub grabWindowRegion { my $ds = new Win32::GuiTest::DibSect; $ds->CopyClient(shift,[@_]); $ds->ToClipboard(); print Win32::Clipboard::IsBitmap() ? "Bitmap\n" : "Not Bitmap\n"; my $image = Win32::Clipboard::GetBitmap(); #Same results with just Get() print Dumper $image; die "\n"; # $ds->SaveAs('temp.bmp'); # return parseBMP('temp.bmp'); }
Not Bitmap $VAR1 = '';
The image is definitely on the clipboard though, since if I open mspaint, I can Ctrl-V and get the "my computer" icon perl captured from my desktop...
In reply to Re^2: Win32::GuiTest - Processing screen captures in memory?
by SuicideJunkie
in thread Win32::GuiTest - Processing screen captures in memory?
by SuicideJunkie
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |