AutoHotkey Community

It is currently May 27th, 2012, 6:14 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Grab !
PostPosted: September 5th, 2004, 9:38 pm 
Offline

Joined: April 15th, 2004, 5:33 pm
Posts: 181
Quote:
Capture of Windows to Image Files
The capture of displayed windows to image files can be done by any number of avaialble utility programs, including the use of the Alt-PrintScreen mechanism of Windows 9x itself. The grab.exe command line utility is still another capture program that is adapted for use with Tcl/Tk scripts.

Installing the program
Download the grab 1.0 archive. Uncompress it in a directory that is in your current path (for example, the \windows directory). The program is now ready to run from a command prompt.

Command format
The general format of the command line call to this application is:

grab -c -h -l -p -r -w -t title -f name -d value

where the options have the following uses:

-c Places the output on the clipboard
-h Displays a help message
-l Produces a list of the windows that can be captured
-r Specifies that child windows should be included
-w Specifies that both client and non client window regions should be captured
-t Specified the window title of the target window
-f Specifies a file name for the captured image
-d Specifies a color depth for the captured image (1,4,8 or 24)
-p Causes the target window to pop up to the top the display stack

Clearly, some parameters are exclusive of others. Specifying -c will send the output to the clipboard, so a file name is not required. Similarly, the -l option does not result in any capture, but produces a list of the captureable windows on standard output in Tcl list format.

The default color depth for capture is that of the current display device. If you wish to reduce the color depth to some smaller value than your default, then the -d parameter can be used. The color space reduction is done by dithering, so the result may not be entirely pleasing to the eye if the colors used in the captured window are not similar to those used in standard palettes for the associated depths. Note that is rarely makes sense to use this option to inflate the color depth.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 5th, 2004, 10:00 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
Nice, but where do you get one? :)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 5th, 2004, 10:24 pm 
Offline

Joined: April 15th, 2004, 5:33 pm
Posts: 181
Oops ..., so [Grab!] 8)


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group