Click Activity action always was blocked by Task View

I use Click Activity often met Task View blocked issue. : frowning:
:frowning:

Cannot bring the target application in the foreground. The action was blocked by the current foreground window ‘Task View’ from the process ‘explorer.exe.’

Mode: Unattended Robot
OS:Win10
UiPath Version:2020.10.2

To overcome this issue, you can try the following approaches:

  1. Use the SimulateClick or SendWindowMessages property: In the Click activity properties, enable either the SimulateClick or SendWindowMessages property. These options allow UiPath to interact with the target application without bringing it to the foreground. Experiment with both options to see which one works best for your specific scenario.
  2. Minimize or close interfering windows: Before performing the Click activity, use activities like Window or Element operations to minimize or close any interfering windows, such as the Task View window. By doing so, you can ensure that the target application is in the foreground and accessible for the Click activity.
  3. Modify Windows settings: If possible, modify the Windows settings to allow UiPath to interact with the target application even when it is not in the foreground. You can adjust the User Account Control (UAC) settings, disable certain Windows features, or configure security settings to enable UiPath to interact with the applications seamlessly.
  4. Use keyboard shortcuts or hotkeys: Instead of relying on the Click activity, try using keyboard shortcuts or hotkeys to perform the desired actions within the target application. UiPath provides activities like Type Into or Send Hotkey that allow you to send keyboard inputs without bringing the application to the foreground.
  5. Use background automation techniques: In some cases, you may need to use background automation techniques, such as Image or Text-based automation, to interact with elements within the target application without bringing it to the foreground. These techniques involve identifying and interacting with elements based on their visual appearance or text content.

I made takesceerneshots like follow.

it seems that the Task View were raised.

@Paul_Wang do you want to bring chrome foreground?

No, I never use like window/browser activation activity, but i don’t know why the task view was triggered.

Any other activies also can trigger the task view?

Hi @Paul_Wang

To resolve this issue, you can try the following steps:

The “Timeline” feature in Windows 10 is closely related to the “Task View.” Disabling this feature may help resolve the issue.a. Open the Windows Settings by pressing the Windows key + I. b. Go to “Privacy” and select “Activity history” from the left panel. c. Under the “Show activities from accounts” section, disable the toggle switch for “Store my activity history on this device.” d. Scroll down and disable the toggle switch for “Show activities on this device.” e. Restart your computer for the changes to take effect.

Thanks!!

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