Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/teak/pusshcap

Simple command line exe to capture screenshots
https://github.com/teak/pusshcap

Last synced: about 1 month ago
JSON representation

Simple command line exe to capture screenshots

Awesome Lists containing this project

README

        

# PusshCap
Simple command line exe to capture screenshots.

There is a compiled 64 bit exe for convenience.

Requires .NET Framework to be installed.

Captures the screen that the mouse cursor is on to the file specified as the only command line argument. If there are no args, it will save to 'cap.png' in the same directory as the exe. Always saves as PNG.

Outputs one line to stdout. A comma separated list of useful info about the screen of which the shot was taken:

screen-bounds-x,screen-bounds-y,screen-bounds-width,screen-bounds-height,mouse-x,mouse-y,filename-or-path

The screen bounds are taken directly from a .NET rectangle and are relative to the main screen. They can be negative, depending on screen orientation.

https://msdn.microsoft.com/en-us/library/system.drawing.rectangle%28v=vs.110%29.aspx

MIT License