Micro Focus QTP (UFT) Forums
Screenshot - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Others (https://www.learnqtp.com/forums/Forum-UFT-QTP-Others)
+--- Thread: Screenshot (/Thread-Screenshot)



Screenshot - somu175734 - 06-22-2009

Hi All,
I am Scraping some data from a page(the fields are being highlighted while scraping) and after each operation i am taking the screenshot of that page.I want the screenshot such a way that it will take just when the fields are highlighted(In actual I am getting the whole page,not any field highlighted).How will i do that?

Thanks in advance

Somnath Sinha



RE: Screenshot - niranjan - 06-23-2009

pressing print screen will capture the entire screen, while pressing the alt key in combination with print screen will capture the currently selected window.
In your case you may have to use some tools like snagit, etc


RE: Screenshot - ursvinod - 06-24-2009

Hi Somu,

How are you taking the screenshots? what logic are you using? is it the same below code

Desktop.CaptureBitmap "C:\filename.png"