Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: capture what's on the screen

by mattriff (Chaplain)
on Feb 01, 2003 at 21:41 UTC ( [id://231897]=note: print w/replies, xml ) Need Help??


in reply to capture what's on the screen

I found this mailing list post, which describes something pretty similar to what you are looking for.

Of course, that's capturing the whole screen (printscreen) or the active window (alt-printscreen). Once you had that, though, you could use ImageMagick to crop to the section you need. (That's one way, anyway. TIMTOWTDI, I'm sure.)

- Matt Riffle

Replies are listed 'Best First'.
Re: Re: capture what's on the screen
by pg (Canon) on Feb 01, 2003 at 21:58 UTC
    This is not quite what I am looking for. I want the capturing fully controled by my program, without any human interaction, so printscreen does not work (I don't press buttons ;-)

    However to capture the whole screen instead of an area is okay with me, I can process it after.

    Update

    Cool, I will take a look, thanks.
      My reading of that code (and I've never used any of the Win32 modules ever, so YMMV) was that you didn't press anything -- it simulated the keystroke for you.

      The part I'm talking about is:

      # press the key!! $key->Call(0x2C, 0x45, 0x01, 0); #simulate a "printscrn" key press $key->Call(0x2C, 0x45, 0x03, 0); # & release

      - Matt Riffle

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://231897]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2024-04-19 08:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found