@Hong - you would need to know the exact pixel position vector of the external application and then you could use ScreenCapture on it from within Matlab. I do not know of an easy way to programmatically get the position vector for an external process, but I assume that it's possible - you'll need to search online for a solution I'm afraid.
Excellent job, thank you so much!
However, since I am not very familiar with matlab, I would like to ask how can I screencapture an area in other application, for example Chrome, such that I can keep monitoring the application and response to it in later stages? Thank you so much!
18 Nov 2013
Function to capture the screen, or portions of the screen. Uses java.awt.robot screen capture.