UiPath Activities

The UiPath Activities Guide

Block User Input


A container which disables the mouse and keyboard when activities inside it run. Can be configured to block either mouse, keyboard, or both, and permits you to designate a hotkey combination to re-enable them.


Certain user input devices such as touchpads, trackpads or touchscreens may not be completely blocked by this activity. Due to the wide variety of device models and drivers as well as the complex commands their gestures can produce, some multi-finger gestures or touchscreen specific interactions are sent to the operating system as software events. Since in UI Automation scenarios, Robots use software events to simulate human interaction, they cannot be blocked.


Using Block User Input with Parallel activities (such as Parallel For Each) is not supported.


When running an automation process that uses the Block User Input activity as a job from Orchestrator, and the Executor does not have administrator privileges on the machine you run the process on, any application that has a higher privilege than the Executor and is in focus cannot be blocked by the activity. As a workaround, offering administrator privileges to the Executor enables the Block User Input activity to work as expected.



  • ContinueOnError - Specifies if the automation should continue even when the activity throws an error. This field only supports Boolean values (True, False). The default value is False. As a result, if the field is blank and an error is thrown, the execution of the project stops. If the value is set to True, the execution of the project continues regardless of any error.


If this activity is included in Try Catch and the value of the ContinueOnError property is True, no error is caught when the project is executed.

  • DisplayName - The display name of the activity.


  • Block - A drop-down list which specifies whether you want to disable only mouse, only keyboard, or both.


  • Private - If selected, the values of variables and arguments are no longer logged at Verbose level.

Unblock options


Once the designated hotkey combination for reactivating user input is pressed, and user input is restored, it cannot be blocked again during the same runtime. The hotkey combination is implemented as a safeguard against blocking yourself from stopping the workflow while developing it.

  • Key - The key you want to use to reactivate the mouse and keyboard.
  • KeyModifiers - The modifiers you want to use alongside the key selected in the Key property to reactivate the mouse and keyboard. The following options are available: Alt, Ctrl, Shift, and Win.
  • SpecialKey - Indicates if you are using a special key in the keyboard shortcut. A list of all available special keys is provided in the Key drop-down list present in the body of the activity.


If other keys are pressed simultaneously with the designated key combination, the user input is restored anyway. This is designed as a safeguard against cases when the automation process hangs while continuously sending keys.

  • Timeout (milliseconds) - The amount of time the activity waits before throwing an error, expressed in milliseconds. This field supports only integers and Int32 variables.

Updated about a year ago

Block User Input

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.