AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Grab !

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Utilities & Resources
View previous topic :: View next topic  
Author Message
Beastmaster



Joined: 15 Apr 2004
Posts: 181

PostPosted: Sun Sep 05, 2004 8:38 pm    Post subject: Grab ! Reply with quote

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.
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10480

PostPosted: Sun Sep 05, 2004 9:00 pm    Post subject: Reply with quote

Nice, but where do you get one? Smile
Back to top
View user's profile Send private message Send e-mail
Beastmaster



Joined: 15 Apr 2004
Posts: 181

PostPosted: Sun Sep 05, 2004 9:24 pm    Post subject: Reply with quote

Oops ..., so [Grab!] Cool
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Utilities & Resources All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group