Snipping Tool Command-line to Capture Screen Region in Windows 10

The Windows 10 Creators Update, slated for release in March-April 2017, will include the capability to capture a screen region using Win + Shift + S shortcut key, as mentioned in article Screenshot a Portion of the Screen in Windows 10 [Winkey+Shift+S].

Contents

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

snippingtool.exe /clip command-line

snippingtool.exe /clip command-line

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.

snippingtool.exe /clip command-line

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

snippingtool.exe /clip command-line

Snipping Tool defaults to the last used Snip mode?

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 Winhelponline.com 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

6. 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 preview build 14997 / 15002 onwards, and these features would make it to the final release which is expected in March or April 2017.

About the author

Ramesh Srinivasan founded Winhelponline.com back in 2005. He is passionate about Microsoft technologies and has a vast experience in the ITeS industry — delivering support for Microsoft's consumer products. He has been a Microsoft MVP [2003 to 2012] who contributes to various Windows support forums.

1 thought on “Snipping Tool Command-line to Capture Screen Region in Windows 10

Leave a Comment

+1
Share
Tweet
Share
Pin