in reply to Re^2: Win32::GuiTest - Processing screen captures in memory?
in thread Win32::GuiTest - Processing screen captures in memory?
You are calling GetBitmap as a function. The documentation shows it being called as a class method. I suspect that is the cause of your problem as the following snippet successfully retrieves, saves and displays any image I place on the clipboard:
#! perl -slw use strict; use Win32::Clipboard; my $cb = Win32::Clipboard->new(); my $bmp = $cb->GetBitmap; open O, '>:raw', 'junk.bmp' or die $!; print O $bmp; close O; system 'junk.bmp';
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Win32::GuiTest - Processing screen captures in memory?
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 |