• Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.

ScreenCapture Utility

xbonez

New Member
Joined
Nov 29, 2010
Messages
1,182 (0.24/day)
Location
Philly, PA (US)
System Name Winter
Processor AMD Phenom II x4 965 BE @ 4.0Ghz
Motherboard MSI 790FX-GD70
Cooling Corsair H50 Liquid Cooling
Memory 2 x 2Gb Gskill Ripjaws 1600Mhz (7-7-7-24@1.6V)
Video Card(s) Asus GTX 470 @ Stock (Zalman VF3000 cooler)
Storage 2 x Samsung Spinpoint F3 500GB (RAID 0)
Display(s) Hanns G 28" @ 1920x1200
Case Antec 1200
Audio Device(s) Onboard -- TosLink --> Z5500
Power Supply Corsair 850TX 850W PSU
Software Win 7 64-bit Ultimate
SCREEN CAPTURE

As part of a community that overclocks and stress tests anything they possibly can, and a sub-community that Folds on anything and everything, there is one this I realized, we do a lot. And that is taking screenshots. Whether to show off our overclock, get help from others or any of the hundred other reason we need screenshots for.

The general steps taken to get a screenshot are the following:

1. Hit printscreen (or alt-printscreen)
2. Open MS Paint
3. Paste the image
4. Crop if necessary
5. Save the image

Doing this over and over again, gets really tiring. I had a little down time at work today, and decided to write a little app that makes life easier for all of us by automating as much of the process as I could.

The application has been written in C# (.NET Framework 2.0), so you will need to have .NET Framework installed to be able to use it.


The application provides the user with two options (via two buttons).
1. You may either capture your entire screen, or
2. Capture just the area covered by the application itself.

The first one is rather self-explanatory. You click the 'Capture Screen' button and you have a screenshot of your screen.

For the second, you resize the application window to cover exactly the area you want to capture, and click the 'Capture Window' button. The application window will hide itself and take a screenshot of the area it was covering.

The screenshots taken get saved as a .png file. The default location the files get saved at are C:\Screenshots. You may click on the 'Change Save Folder' and specify another directory
(Changing this to your Dropbox Public folder alleviates the need to upload the file to an imagehosting website).

I have attached the .exe as well as the Visual Studio solution, should anyone want to have a look at the code or make any changes (Feel free to do so, but give credit where it's due).

Possible changes I would like to make in the future:
1. Automatically upload image to an imagehosting website and provide user with direct link.
2. Support multiple monitors.
3. Add an icon to the Form.
 

Attachments

  • ScreenshotUploader.exe
    13 KB · Views: 513
  • ScreenshotUploader.zip
    48.6 KB · Views: 195
  • cap01.jpg
    cap01.jpg
    13.6 KB · Views: 393
  • cap02.jpg
    cap02.jpg
    18.5 KB · Views: 387
  • cap03.jpg
    cap03.jpg
    21.6 KB · Views: 383
Last edited:

Completely Bonkers

New Member
Joined
Feb 6, 2007
Messages
2,576 (0.41/day)
Processor Mysterious Engineering Prototype
Motherboard Intel 865
Cooling Custom block made in workshop
Memory Corsair XMS 2GB
Video Card(s) FireGL X3-256
Display(s) 1600x1200 SyncMaster x 2 = 3200x1200
Software Windows 2003
GREAT!

However, did you know that TPU Capture does this already, and it will ALSO UPLOAD the screenshot to Wizzard's server, ready to paste into the forum!

http://www.techpowerup.com/downloads/1607/.html

IMO TPU Capture is blxxdy brilliant and one of my favourite utilities. :pimp:
 

xbonez

New Member
Joined
Nov 29, 2010
Messages
1,182 (0.24/day)
Location
Philly, PA (US)
System Name Winter
Processor AMD Phenom II x4 965 BE @ 4.0Ghz
Motherboard MSI 790FX-GD70
Cooling Corsair H50 Liquid Cooling
Memory 2 x 2Gb Gskill Ripjaws 1600Mhz (7-7-7-24@1.6V)
Video Card(s) Asus GTX 470 @ Stock (Zalman VF3000 cooler)
Storage 2 x Samsung Spinpoint F3 500GB (RAID 0)
Display(s) Hanns G 28" @ 1920x1200
Case Antec 1200
Audio Device(s) Onboard -- TosLink --> Z5500
Power Supply Corsair 850TX 850W PSU
Software Win 7 64-bit Ultimate
GREAT!

However, did you know that TPU Capture does this already, and it will ALSO UPLOAD the screenshot to Wizzard's server, ready to paste into the forum!

http://www.techpowerup.com/downloads/1607/.html

Lol....no. I did not. Oh well...

EDIT:
Well, one thing my app does that TPU Capture won't is cover multiple windows.

Suppose you want a pic of RealTemp, Prime95 and CPU-Z, you can cover those three windows with this app, and get a screenshot of all 3 together without having to capture the entire screen.

EDIT 2:

Nevermind. TPU Capture has a custom option. lol
 

streetfighter 2

New Member
Joined
Jul 26, 2010
Messages
1,655 (0.33/day)
Location
Philly
Well one important difference between xbonez program and w1zzards is the availability of source code, which to me is no small benefit.

I've often thought about writing my own capture utility because I wasn't happy with other ones. I'd have to add a shell hook and code to capture D3D and openGL frames so I could take pictures in fullscreen games. I'm probably not going to bother though...
 

W1zzard

Administrator
Staff member
Joined
May 14, 2004
Messages
27,046 (3.71/day)
Processor Ryzen 7 5700X
Memory 48 GB
Video Card(s) RTX 4080
Storage 2x HDD RAID 1, 3x M.2 NVMe
Display(s) 30" 2560x1600 + 19" 1280x1024
Software Windows 10 64-bit
TPU Capture won't is cover multiple windows.

hit the print screen key and drag whatever you want to capture in the "background"
 

xbonez

New Member
Joined
Nov 29, 2010
Messages
1,182 (0.24/day)
Location
Philly, PA (US)
System Name Winter
Processor AMD Phenom II x4 965 BE @ 4.0Ghz
Motherboard MSI 790FX-GD70
Cooling Corsair H50 Liquid Cooling
Memory 2 x 2Gb Gskill Ripjaws 1600Mhz (7-7-7-24@1.6V)
Video Card(s) Asus GTX 470 @ Stock (Zalman VF3000 cooler)
Storage 2 x Samsung Spinpoint F3 500GB (RAID 0)
Display(s) Hanns G 28" @ 1920x1200
Case Antec 1200
Audio Device(s) Onboard -- TosLink --> Z5500
Power Supply Corsair 850TX 850W PSU
Software Win 7 64-bit Ultimate
hit the print screen key and drag whatever you want to capture in the "background"

Yup, noticed that soon after making the post (hence EDIT2).
 

char[] rager

New Member
Joined
Jun 9, 2010
Messages
310 (0.06/day)
Location
Massachusetts Institute of Technology, Computer Sc
System Name Obsidianight
Processor Intel Core i7 950 @ ~ 4 GHz
Motherboard Asus P6T Deluxe
Cooling Custom Liquid Cooling
Memory 6GB (3 x 2GB) Corsair XMS3 DDR3 Triple-Channel @ ~ 1.6 GHz (9-9-9-24-1T)
Video Card(s) Zotac AMP! GTX 580 @ 900 MHz Core / 1025 MHz Memory / 1800 MHz Shader
Storage 180 GB OCZ Vertex 2 SSD
Display(s) Sceptre 24 Inch (1920 x 1200) 2 MS Response
Case Corsair Obsidian 800D
Audio Device(s) Onboard
Power Supply 1 kW Antec TruePower Quattro
Software Microsoft Windows 7 Ultimate 64-Bit / Linux Mint 9 And Fedora 13 KDE Through VirtualBox
I for one am for community created programs. I am checking this out now.
 
Top