Skip to content
Kristian Rekstad edited this page Jul 30, 2020 · 10 revisions

ScreenCapture

Oh boy!

Compatability

Java 1.7 and 1.8. We could support Java 1.6, but you should rather upgrade your Java. 🚽

Usage

Running

Run the file as an executable jar as you prefer. Double click on it, or from the command line: java -jar ScreenCapture.jar

Using

  • Mark out an area with your mouse, and hit Enter on your keyboard.
  • If you want to redraw the rectangle, just drag out a new one.
  • To exit, hit Escape on your keyboard.

Plugins

ScreenCapture has support for plugins, which can do several useful actions to your captured image. You specify which plugins to load in ScreenCapture's configuration file. The default location for the configuration file is ~/.ScreenCapture/config.txt, but you may specify another path using the -c or --config flag. If the file doesn't exist, the program will create a default configurationfile. The configuration file should be YAML-formatted. Please note that JSON is valid YAML, and may be used in your config file. YAML doesn't support indenting by tabs. You must use spaces for indenting!

Example configuration file:

[
    {
        "path": "~/.ScreenCapture/plugins/Uploader.jar",
        "configuration": {
            "directory" : "/web/img/",
            "server" : "login.server.com",
            "port" : "22",
            "user" : "myusername",
            "privateKey" : "C:\\.ssh\\id_rsa",
            "httpServer" : "http://server.com/img/"
        }
    },
    {
        "path": "~/.ScreenCapture/plugins/FileSaver.jar",
        "configuration": {}
    }
]

Each plugin-entry must specify the path and configuration for your plugin. The path is simply where the plugin-jar is located, this should be either a URL-formatted string or a string containing the filesystem-path. Tildes in your path will be expanded to your user's homedirectory. The configuration variable holds configuration values used by the plugin. Most often, each plugin will have special requirements for what this variable should hold.

Downloads

For using ScreenCapture, you only need ScreenCapture.jar. If you want to develop plugins, you can download the Plugin.jar and its source.

Clone this wiki locally