Staredit Network > Forums > Technology & Computers > Topic: Calling PrtScr with C++
Calling PrtScr with C++
Nov 20 2010, 10:41 pm
By: EzDay281  

Nov 20 2010, 10:41 pm EzDay281 Post #1



I'd like to write a program to automate some screenshotting I'd like to do which is basically impossible to perform manually.
Anyone know how to do this?
I know there are programs that exist for screen recording, but none I've found are ideal, and a programmatic solution would provide me with an ultimate degree of flexibility.



None.

Nov 20 2010, 10:55 pm O)FaRTy1billion[MM] Post #2

👻 👾 👽 💪

If you use GDI you could use GetDC(NULL); to get a handle for the entire screen... then just use BitBlt or GetDIBits to copy the data. GetDIBits is probably more useful because it gives you the raw data in a buffer so you could just dump it into a file or something. (BitBlt copies it to another dc thingy.)



TinyMap2 - Latest in map compression! ( 7/09/14 - New build! )
EUD Action Enabler - Lightweight EUD/EPD support! (ChaosLauncher/MPQDraft support!)
EUDDB - topic - Help out by adding your EUDs! Or Submit reference files in the References tab!
MapSketch - New image->map generator!
EUDTrig - topic - Quickly and easily convert offsets to EUDs! (extended players supported)
SC2 Map Texture Mask Importer/Exporter - Edit texture placement in an image editor!
\:farty\: This page has been viewed [img]http://farty1billion.dyndns.org/Clicky.php?img.gif[/img] times!

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[2026-8-18. : 6:17 am]
Ultraviolet -- skibidi
[2026-8-18. : 6:08 am]
Woxan -- YO
[2026-8-18. : 2:46 am]
Symmetry -- Do I see a Dood?
[2026-8-17. : 3:00 am]
Symmetry -- :wob:
[2026-8-16. : 10:55 pm]
Apos -- Symmetry
Symmetry shouted: Not Apos! :wob:
:wob:
[2026-8-16. : 10:13 pm]
O)FaRTy1billion[MM] -- yo
[2026-8-16. : 9:28 pm]
RIVE -- yo
[2026-8-16. : 7:26 pm]
Moose -- yo
[2026-8-16. : 6:31 pm]
Symmetry -- yo
[2026-8-16. : 4:10 am]
lozenge-jtk -- yo
Please log in to shout.


Members Online: RIVE