Problem with capturing active state of the application
Problem with capturing active state of the application
- Subject: Problem with capturing active state of the application
- From: Srinivasa Prabhu <email@hidden>
- Date: Thu, 18 Jun 2009 11:19:03 +0530
- "x-copyrighted-material: http://www.robosoftin.com"
Hi All,
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.
This is what we are doing currently.
When the user enters the selection capture mode, we hide the
application's
main window and put up a transparent window that covers the entire
screen.
The selection area is drawn on this window and we capture the image
from the selected area.
However we are not able to capture the active state of the close,
minimize, zoom, scroll
buttons of the application currently on the screen.
These are in the disabled state because our application is currently
active.
We have tried the following.
1. Capturing the screen using CGDisplayCapture and then displaying a
transparent window
and drawing over the window.
See here for the documentation:
http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaDrawingGuide/AdvancedDrawing/AdvancedDrawing.html#/
/apple_ref/doc/uid/TP40003290-CH207-SW16
However this solution freezes the screen.
For eg: If a movie is being played and we enter the selection mode, it
is not possible to receive screen updates.
But this is not the case with Apple's Cmd+Shift+4.
What are we doing wrong here?
Is there any workaround to capture the active state of the applications?
Thanks in advance
Srinivas
-----------------------------------------------
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@hidden)
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:
This email sent to email@hidden