Window Clippings

Tutorials and frequently asked questions

What command line arguments are supported?

leave a comment »

The Window Clippings executable (wc.exe) provides two commands that can be used to automate screen capture.

 

Favorite

The favorite command create a screenshot based on the settings for a particular favorite.

wc favorite [/n <name>]

The /n argument is used to specify a favorite by name if the default is not desired. Remember to enclose the favorite name in quotes if the name itself has spaces in it.

Examples:

Run the default favorite (the one currently selected on the Favorites tab in Window Clippings):

wc favorite

Run the favorite named “Blog”:

wc favorite /n Blog

Run the favorite named “Create screenshot”:

wc favorite /n "Create screenshot"

 

Capture

The capture command create a screenshot purely based on the arguments provided on the command line.

wc capture [options] /out <filename>

The /out argument must be provided to specify the full name of the file that will contain the screenshot.

If no additional arguments are provided then the selection surface is presented.

The /wt argument is used to capture a window with a given title.

The /wc argument is used to capture a window with a given class name.

The /wh argument is used to capture a window with a given decimal handle value.

The /r argument is used to capture a rectangle given four decimal coordinates.

The /shadow argument indicates that window shadows should be included.

Examples:

wc capture /out c:\samples\calc.png /wt Calculator

wc capture /out c:\samples\ie.png /wc IEFrame /shadow

wc capture /out c:\samples\rect.png /r 100 100 600 400

Advertisements

Written by epsitec

27 November 2010 at 8:48 pm

Posted in Uncategorized

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: