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.
[11:00 pm]
Vrael -- :wob:
[05:18 pm]
IskatuMesk -- :wob:
[2026-7-10. : 7:29 am]
Zycorax -- :wob:
[2026-7-10. : 3:48 am]
O)FaRTy1billion[MM] -- :wob:
[2026-7-10. : 3:14 am]
Symmetry -- :wob:
[2026-7-10. : 1:03 am]
IskatuMesk -- that's a loaded sentence if I ever snorted one
[2026-7-09. : 2:31 am]
Symmetry -- lot of 0s in them boxes, someone better hit it big
[2026-7-05. : 1:14 am]
l)ark_ssj9kevin -- Rectal!!!
[2026-7-05. : 12:13 am]
IskatuMesk -- u guys ever look at the "Backend performance improvements" line and kinda you know 👀
[2026-7-03. : 4:25 pm]
l)ark_ssj9kevin -- oh wow it's kind of like archipeligo but solo
Please log in to shout.


Members Online: Oh_Man, Moose, Dem0n