3

I like Greenshot alot but am very use to Snipping Tool behaviour of defaulting to 'capture region'.

I thought there would be a simple cmd line for doing this (ie. 'greenshot.exe /region') but alas there is no CLI for greenshot.

I like having an icon pinned to my taskbar for quick and easy region capture, like with snipping tool allows, however after capture snipping tool is lacking.

Anyone?

Nick L
  • 31

3 Answers3

0

Currently there is no way to start Greenshot with immediate region capture. However, there is an option to launch Greenshot on startup (which should be ticked by default if you have used the installer).

Settings dialog: Launch Greenshot on startup

With Greenshot already running in the background, you can quickly trigger a region capture using the Prnt key or the context menu of the systray icon.

jklingen
  • 481
0

There is currently no way to do this, however a release of Greenshot 2.0 is upcoming and there are several open feature tickets requesting this functionality.

https://greenshot.atlassian.net/projects/FEATURE/issues/filter=allopenissues?filter=allopenissues&orderby=priority%20DESC&keyword=command%20line

Requesting / showing demand / donating may help the feature appear faster.

0

Assuming PrintScr is the shortcut key assigned in GreenShot, using the following PowerShell script simulates the pressing of the PrintScreen key using the keybd_event function from the user32.dll library.

Add-Type -TypeDefinition @"
using System;
using System.Runtime.InteropServices;
public class Keyboard {
    [DllImport("user32.dll", SetLastError = true)]
    public static extern void keybd_event(byte bVk, byte bScan, uint dwFlags, int dwExtraInfo);
}
"@ -PassThru

Press keys (Ctrl + Shift + PrintScreen)

[Keyboard]::keybd_event(0x2C, 0, 0, 0) # PrintScreen down [Keyboard]::keybd_event(0x2C, 0, 2, 0) # PrintScreen up

On Windows 11, it's likely necessary to disable the Windows Snipping tool mapping to PrtScr first:

disabling snip tool

CJBS
  • 171