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

ScreenCapture Utility

Discussion in 'Programming & Webmastering' started by xbonez, Jan 14, 2011.

  1. xbonez New Member

    Joined:
    Nov 29, 2010
    Messages:
    1,182 (0.73/day)
    Thanks Received:
    315
    Location:
    Philly, PA (US)
    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.
     

    Attached Files:

    Last edited: Jan 14, 2011
    char[] rager and streetfighter 2 say thanks.
  2. Completely Bonkers New Member

    Joined:
    Feb 6, 2007
    Messages:
    2,580 (0.86/day)
    Thanks Received:
    516
    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:
     
  3. xbonez New Member

    Joined:
    Nov 29, 2010
    Messages:
    1,182 (0.73/day)
    Thanks Received:
    315
    Location:
    Philly, PA (US)
    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
     
  4. streetfighter 2

    streetfighter 2 New Member

    Joined:
    Jul 26, 2010
    Messages:
    1,658 (0.95/day)
    Thanks Received:
    732
    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...
     
  5. W1zzard

    W1zzard Administrator Staff Member

    Joined:
    May 14, 2004
    Messages:
    15,334 (3.82/day)
    Thanks Received:
    12,518
    hit the print screen key and drag whatever you want to capture in the "background"
     
  6. xbonez New Member

    Joined:
    Nov 29, 2010
    Messages:
    1,182 (0.73/day)
    Thanks Received:
    315
    Location:
    Philly, PA (US)
    Yup, noticed that soon after making the post (hence EDIT2).
     
  7. char[] rager New Member

    Joined:
    Jun 9, 2010
    Messages:
    310 (0.17/day)
    Thanks Received:
    26
    Location:
    Massachusetts Institute of Technology, Computer Sc
    I for one am for community created programs. I am checking this out now.
     
    xbonez says thanks.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guest)

Share This Page