PDA

View Full Version : Active Window Screenshot Capture




ruhi
Nov 7, 2009, 01:58 AM
Hello,

I need to capture active window screenshot ignoring all background window even desktop.

SonOfGrab example shows screen capture but i need it for only the active window screen

What can be done?

Thanks,
Ruhi.



Peace
Nov 7, 2009, 02:02 AM
Appplications > Utilities > Grab

Capture window.

bartelby
Nov 7, 2009, 02:24 AM
or

Command + Shift + 4 then hit Spacebar

a camera will appear then click on the window you want.

ruhi
Nov 7, 2009, 03:08 AM
Hello,

Thanks,

But i need to do it by cocoa without user selection.

I need to take screenshot of active window in regular intervals automatically in objective-C programming or some apple script.

Thanks,
ruhi

ranguvar
Nov 7, 2009, 03:56 AM
Gotta love google... link (http://developer.apple.com/mac/library/samplecode/SonOfGrab/)