I am making a program that with one button click, takes a screenshot of the open window and then display the same in the GUI but unable to do so. I could take the screenshot