Posted: 2 Mar 2017 9:26 EST Last activity: 2 Mar 2017 9:37 EST
Screenshot of specific window with Robotic automation
We are currently using version 7.1.80 of Pega Robotic Automation (formerly OpenSpan). We have a process that needs to grab a screenshot of a particular window. I can use C# to get a screenshot but that will get any other windows or notifications that may be in front of the active window. Is there a way to do this with Pega that just gets the intended window? In this specific case, the window is a WebAdapter that has been interrogated within Pega.
You are correct in that you'll need to use C#. Here is an article I found on Stack Overflow that shows how to capture the active window. You may need to create a component to do this as opposed to a script. From the adapter, you can get the bounds of the main window control to pass to the component. Then you can capture those bounds using the code. You may also need to activate the window if it could be behind something.