How to take screenshot in PIP mode

Using take screenshot activity in classic mode gives an error and in modern activity it didn’t throw any error but not taking the screenshot also.

@saransh_garg

Where are you saving the screenshot …check that properly…either it would throw or would save

Cheers

While using classic activity it throw an error and while using modern activity it didn’t take screenshot.

can you show the error message & your flow

Take Screenshot ‘DIV grid’: System.ComponentModel.Win32Exception (0x80004005): The handle is invalid
at System.Drawing.Graphics.CopyFromScreen(Int32 sourceX, Int32 sourceY, Int32 destinationX, Int32 destinationY, Size blockRegionSize, CopyPixelOperation copyPixelOperation)
at System.Drawing.Graphics.CopyFromScreen(Point upperLeftSource, Point upperLeftDestination, Size blockRegionSize, CopyPixelOperation copyPixelOperation)
at UiPath.Vision.UiImage.FromScreenRegion(Rectangle region)
at UiPath.Core.Image…ctor(Region screenRegion)