0

I want to achieve a screenshot functionality in cocoa app. The requirement is, After some specified time interval, a view/window (screen capture window) will appear take the screenshot of the complete screen and moves away.

I want this screen capture window to appear from the right bottom corner of the screen (Not from the main window) ?

If main window is minimized i still want this screen capture window to come, take the screenshot and go away back with animation.

Please guide me how to achieve this.

4

1 回答 1

0

你可以使用screencapture命令。

screencapture -- 从屏幕上捕获图像并将它们保存到文件或剪贴板

screencapture -mx -T0 /path/screenShot.png
于 2012-10-19T07:03:35.723 回答