Thanks Andrew.

We looked into the link.

However if our application is not active and the user enters the selection capture mode using Hot Keys, how do we capture the active state of close, minimize, zoom, scroll buttons of the application currently on screen?

Since we put up a transparent window to handle the selection drawing, we have to activate our application to receive mouse and key events.
Because of this the previously active application gets deactivated.

Is there any workaround for this?

Regards,
Srinivas
On Jun 18, 2009, at 11:49 AM, Andrew Farmer wrote:

On 17 Jun 2009, at 22:49, Srinivasa Prabhu wrote:
In our application we want to capture a selected area similar to Apple's Cmd+Shift+4 i.e during selection capture, the active state of another application has to be captured.
...
Is there any workaround to capture the active state of the applications?

Yes: CGWindow.

http://developer.apple.com/documentation/Carbon/reference/CGWindow_Reference/Reference/Functions.html#/ /apple_ref/doc/uid/TP40008073-CH2-DontLinkElementID_53


-----------------------------------------------
Robosoft Technologies - Come home to Technology

Disclaimer: This email may contain confidential material. If you were not an 
intended recipient, please notify the sender and delete all copies. Emails to 
and from our network may be logged and monitored. This email and its 
attachments are scanned for virus by our scanners and are believed to be safe. 
However, no warranty is given that this email is free of malicious content or 
virus.
_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to