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:50 pm]
O)FaRTy1billion[MM] -- nice, now i have more than enough
[11:49 pm]
O)FaRTy1billion[MM] -- if i don't gamble them away first
[11:49 pm]
O)FaRTy1billion[MM] -- o, due to a donation i now have enough minerals to send you minerals
[2024-4-17. : 3:26 am]
O)FaRTy1billion[MM] -- i have to ask for minerals first tho cuz i don't have enough to send
[2024-4-17. : 1:53 am]
Vrael -- bet u'll ask for my minerals first and then just send me some lousy vespene gas instead
[2024-4-17. : 1:52 am]
Vrael -- hah do you think I was born yesterday?
[2024-4-17. : 1:08 am]
O)FaRTy1billion[MM] -- i'll trade you mineral counts
[2024-4-16. : 5:05 pm]
Vrael -- Its simple, just send all minerals to Vrael until you have 0 minerals then your account is gone
[2024-4-16. : 4:31 pm]
Zoan -- where's the option to delete my account
[2024-4-16. : 4:30 pm]
Zoan -- goodbye forever
Please log in to shout.


Members Online: Roy