This script has a function that allows you to take a screenshot of the entire desktop or of an active window. Also includes option to save the screenshot to a file.

4,090 times
Add to favorites
E-mail Twitter del.icio.us Digg Facebook
Sign in to ask a question

  • How do I use this?
    1 Posts | Last post July 07, 2014
    • I'm new so how do I use this? I downloaded it but where do I put it? I tried to drag it onto powershell and do a command but it said I had restriction.
  • Good Work
    7 Posts | Last post May 16, 2011
    • Thanks for posting this Boe, I have never seen PowerShell code that imports a chunk of C# b4. Doubly cool for posting something that VBScript can't do. 
    • Thanks for this script. 
      Is it possible to extend the script to send the screenshot directly to a printer? 
      I tested a few things but the only thing I could print was:
      Tag                  : 
      PhysicalDimension    : {Width=1456, Height=876}
      Size                 : {Width=1456, Height=876}
      Width                : 1456
      Height               : 876
      HorizontalResolution : 96
      VerticalResolution   : 96
      Flags                : 335888
      RawFormat            : [ImageFormat: b96b3caa-0728-11d3-9d7b-0000f81ef32e]
      PixelFormat          : Format32bppRgb
      Palette              : System.Drawing.Imaging.ColorPalette
      FrameDimensionsList  : {7462dc86-6180-4c7e-8e3f-ee7333a7a483}
      PropertyIdList       : {}
      PropertyItems        : {}
    • Yes, I actually do that in my password generator form script that is posted out here as well.  If I have time today, I will work to add that functionality into the script. Thanks for the feedback!
    • As requested, I added the ability to send the screen-shot directly to your default printer.
    • Thanks for the updated script, it is printing the image but the image don't scale to fit the paper automatically. 
      It would be great if this also can be included in the script.
      Thanks in advance.
    • I will take a look at the script and see what I can do about that.  Thanks!
    • Sorry for being eager, but do you plan to add the ability to scale the image to the paper? Thanks in advance.