What are some ways to check that PIP is active?

I have an attended automation that could be run in or out of Picture-in-Picture mode. I want the automation to behave differently depending on if PIP is active or not. Currently, I have the automation look for the PIP window element.

Are there other ways to check that PIP is active while the automation is running?

I found another way. There is an environment variable “UIPATH_PIP_SECONDARY_DESKTOP”, that is set as null when PIP is not active, and is set as “1” when PIP is active. You can use a “Get Environment Variable” activity or use the expression Environment.GetEnvironmentVariable(“UIPATH_PIP_SECONDARY_DESKTOP”)) to check its value.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.