Sorry, for being a little less specific...
Actually, I was referring to the OpenSource project that i started :
GNUSnap It Presents a very simple GUI that lets the user to capture the screen shot(for now, the snap shot is only of the complete screen) @ the click of a button.
What i wish to add to this is that the user can set an appropriate timeout(say of n secs) and click the button to take the screen shot. After n seconds my app would capture the shot of the Window that is the Active Window(this need not be a window launched my My App, it could be any window belonging to any process in the system).
For Example : Assume i am using Windows. I could configure my app to take a snap shot of the Active Window after 5 secs, minimize the app and launch Notepad. After 5 secs My App would take the snapshot of Notepad(and not the whole screen).
Similarly, if i am on Linux, i would be able to do the same.
If anyone has any idea regarding this, please put it forth...