in reply to Re: Win32::GuiTest - Processing screen captures in memory?
in thread Win32::GuiTest - Processing screen captures in memory?
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...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Win32::GuiTest - Processing screen captures in memory?
by BrowserUk (Patriarch) on Mar 20, 2011 at 00:18 UTC | |
by SuicideJunkie (Vicar) on Mar 20, 2011 at 05:26 UTC | |
by BrowserUk (Patriarch) on Mar 20, 2011 at 06:05 UTC | |
by SuicideJunkie (Vicar) on Mar 20, 2011 at 14:53 UTC | |
by BrowserUk (Patriarch) on Mar 20, 2011 at 21:45 UTC | |
|
Re^3: Win32::GuiTest - Processing screen captures in memory?
by Anonymous Monk on Mar 19, 2011 at 23:52 UTC |