okay thanks. I somehow managed to get screenshot of the application window. Now there are two problems.

a. if there are other windows on top of that application, it takes the screenshot of that top most window.
b. if i locked my pc, it simply errors and not takes screenshot.

how to fix that?