Is there an easy way to automate taking screenshots?

In what language can I write a short program for creating screenshots and, possibly, emulate a keystroke?

I have an animated / interactive flash movie that is a presentation. I want to take a screenshot after clicking on a specific key.

The final effect is a bunch of screenshots that I can print ... basically captures key points in a flash presentation.

+3
source share
3 answers

I wrote this in C # without much hassle. Here is the main part of the code:

    using (Bitmap bitmap = new Bitmap(bitmapSize.Width, bitmapSize.Height, PixelFormat.Format24bppRgb))
    using (Graphics graphics = Graphics.FromImage(bitmap))
    {
        graphics.CopyFromScreen(
            new Point(0, 0), 
            new Point(0, 0), 
            bitmapSize);
        bitmap.Save(filename, ImageFormat.Png);
    }

, . SWF, , . , , , , .

+5

, , . , ffmpeg. man ffmpeg

ffmpeg -i foo.avi -r 1 -s WxH -f image2 foo-%03d.jpeg

foo-001.jpeg, foo-002.jpeg ..   , WxH.

, -vframes -t,   -ss, .

"" , , 1 "" 30 , foo-030.jpeg

+3

There is a free tool that I recently found that does part of the screen capture. Apparently, it is written in java.

http://screenr.com/

+2
source

Source: https://habr.com/ru/post/1734739/


All Articles