Uploaders
Greenshot setup: upload with a command
How to set up Greenshot with hematite on Windows: download the script, add it as an external command, and each capture sent there goes up, its link copied.
This page as MarkdownGreenshot is a free screenshot tool for Windows. Its External Command plugin runs a program with each capture and copies the first link it prints, which is what hematite's upload script does.
Set it up
-
Download the script. In hematite, open Settings → Uploaders and press Download script beside Greenshot. You get
hematite-upload.ps1. -
Put it in place. Make the folder
%LOCALAPPDATA%\hematite(C:\Users\nova\AppData\Local\hematite) and move the script into it. -
Add the command. Right-click Greenshot in the tray, choose Configure external commands, then New, and fill in:
Field What goes in it Name hematiteCommand %SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exeArguments -NoProfile -NonInteractive -ExecutionPolicy Bypass -WindowStyle Hidden -File "%LOCALAPPDATA%\hematite\hematite-upload.ps1" "{0}"Greenshot puts the capture's path where
{0}is. Press OK. -
Send a capture there. After a capture, choose hematite among Greenshot's destinations. When it's up, the link is on your clipboard and Greenshot's notice links to it.
When it fails
Greenshot's notice says the export failed, with the script's reason after it (when Greenshot's notices are on). The upload script's guide lists what it says and what to do. Two refusals come from Greenshot itself:
- "Filename contains potentially dangerous characters": since 1.3.311, Greenshot refuses a capture whose path has
&,|,;,$, a bracket,<,>or a quote in it, such as a capture saved under a window's title with "(1)" in it. - The command disappears: Greenshot drops a command whose program it can't find when it starts. Check the Command field's path.
Greenshot 1.4, still in testing, has a plugin that reads ShareX's config; it isn't in its releases yet.
Your upload tokens
The script's token lasts 90 days and counts toward your ten. It's listed as Greenshot on Settings → Uploaders and in Settings → Security. Remove it in either place and the script stops uploading; your other uploaders carry on.