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-6-01. : 4:03 pm]
IskatuMesk -- no Hello World? No Hello . jpeg? Not even ddosing some government website? smh my head
[2026-5-31. : 10:02 pm]
Symmetry -- I was really just figuring out how to compile
[2026-5-31. : 10:02 pm]
Symmetry -- I didn't make it do anything
[2026-5-31. : 9:17 pm]
Ultraviolet -- hell yeah. did you have trouble making the button functional, or just haven't gotten there yet?
[2026-5-31. : 8:29 pm]
Symmetry -- I made the marine shoot lasers and gave the medic a nonfunctional button
[2026-5-31. : 8:07 pm]
Ultraviolet -- Symmetry
Symmetry shouted: I did my first EUD thing today. Feels like me finding arsenal at age 8 again
haha for sure. in some ways it's even more exciting because you can play EUD maps on regular battle.net, don't need to convince someone to download your mod to play with you. what did you do?
[2026-5-31. : 6:47 pm]
Symmetry -- I did my first EUD thing today. Feels like me finding arsenal at age 8 again
[2026-5-31. : 3:20 pm]
l)ark_ssj9kevin -- le reddit
[2026-5-31. : 2:55 pm]
Moose -- >reddit :rip2:
[2026-5-31. : 2:07 pm]
IskatuMesk -- reddit 💀
Please log in to shout.


Members Online: DarkenedFantasies, Symmetry