Site icon Winhelponline

Snipping Tool Command-line to Capture Screen Region

Windows 10 (Creators Update and higher) and Windows 11 includes the capability to capture a screen region using Win + Shift + S shortcut key, as mentioned in the article Screenshot a Portion of the Screen [Winkey+Shift+S].


Create Snipping Tool Shortcut to Capture Screen Region Using Snipping Tool

If you find the Winkey + Shift + S inconvenient, you can instead create a shortcut and assign a preferred hotkey to it, such as Ctrl + Shift + S. This can be made possible using Snipping Tool’s new, and undocumented switch named /clip.

The Winkey + Shift + S simply invokes the Snipping Tool in the background. So, all you need to do is create a shortcut with the following target:

C:\Windows\System32\SnippingTool.exe /clip

Assign a hotkey — such as Ctrl + Shift + S — or anything as you’d like. You can pin the shortcut to the taskbar if required. Clicking the shortcut or pressing the assigned hotkey would invoke capture mode (rectangular snip) — by starting the Snipping Tool in non-interactive mode.

Select a region on the screen to copy it to clipboard. Open Paintbrush and paste the captured image.

Snipping Tool defaults to the last used Snip mode?

Update: The following section applies to Windows 10 versions older than v1809. If you’re using v1809 or higher, you don’t need this script, as the command launches rectangular snip mode always.

Note that the Snipping Tool defaults to the capture mode you last used when running the tool interactively (i.e. without /clip parameter). For example, if you had selected a “Window Clip” the last time when you run Snipping Tool the next time either interactively or using /clip, it defaults to Window Snip. That’s a little glitch Microsoft needs to fix.

[Script] Launch SnippingTool.exe /clip in Rectangular Snip mode always

However, here is a script I wrote which Starts Snipping tool in Rectangular Snip mode always, no matter which mode you last used.

'Capture a rectangular screen region to clipboard - using Snipping Tool non-interactively.
'Created for by Ramesh Srinivasan on January 20 2017.

Dim WshShell : Set WshShell = WScript.CreateObject("Wscript.Shell")

'Set the Snipping Tool capture or Snip mode in this value.
strSnipMode = "HKCU\SOFTWARE\Microsoft\Windows\TabletPC\Snipping Tool\CaptureMode"

'CaptureMode DWORD values
	'1 - Free-form Snip
	'2 - Rectangular Snip
	'3 - Window Snip

'We set CaptureMode to 2 for Rectangular Snip
WshShell.RegWrite strSnipMode, 2, "REG_DWORD"

'Launch the Snipping Tool to capture screen region
WshShell.Run "snippingtool.exe /clip",,True
Set WshShell = Nothing

Script Usage

  1. Copy the above lines to Notepad. Save the file with .VBS extension, say snip.vbs.
  2. Place the script in a permanent folder, like d:\scripts
  3. Create a desktop shortcut to the script, using the following target:
    wscript.exe d:\scripts\snip.vbs
  4. Right-click on the shortcut and click Properties
  5. Assign the Snipping Tool (snippingtool.exe) icon to the shortcut.
  6. Assign a shortcut key for the script shortcut, like Ctrl + Shift + S
  7. Optionally, pin the script shortcut to your Start menu or Taskbar.

Clicking this shortcut will launch the rectangular snip mode using which you can capture any region on the screen. The clipboard image can be pasted into Paint.

Note that the new Snipping Tool command-line argument and the Winkey + Shift + S feature are available in Windows 10 Creators Update & higher and Windows 11. However, in the recent builds Win + Shift + S snipping capability is powered by the Snip & Sketch app (instead of Snipping Tool).

Exit mobile version