You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: support/power-platform/power-automate/desktop-flows/ui-automation/block-input-action-issues.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,13 +7,13 @@ ms.custom: sap:Desktop flows\UI or browser automation
7
7
---
8
8
# UI automation actions fail after Block Input action
9
9
10
-
This article provides solutions for an issue in which UI or web automation actions that involve mouse or keyboard input don't work as expected after you use a _Block Input_ action in Power Automate for desktop.
10
+
This article provides solutions for an issue in which UI or web automation actions that involve mouse or keyboard input don't work as expected after you use a **Block Input** action in Power Automate for desktop.
11
11
12
12
## Symptoms
13
13
14
-
When you run a desktop flow that includes a Block Input action by having the **Block It** parameter set to **True**, subsequent UI or web automation actions might not work as expected. The flow continues to the next actions without showing any errors, but the mouse or keyboard interactions aren't run.
14
+
When you run a desktop flow that includes a [Block Input](/power-automate/desktop-flows/actions-reference/mouseandkeyboard#blockinput) action by having the **Block It** parameter set to **True**, subsequent UI or web automation actions might not work as expected. The flow continues to the next actions without showing any errors, but the mouse or keyboard interactions aren't run.
15
15
16
-
The following actions might not work correctly after a Block Input action:
16
+
The following actions might not work correctly after a **Block Input** action:
17
17
18
18
- Populate text field in window
19
19
- Press button in window
@@ -29,10 +29,10 @@ The following actions might not work correctly after a Block Input action:
29
29
30
30
## Cause
31
31
32
-
The Block Input action requires elevated rights to run because of its critical functionality. If Block Input is active by having **Block It** set to **True**, the action can interfere with subsequent UI or web automation actions that require physical mouse or keyboard input.
32
+
The **Block Input** action requires elevated rights to run because of its critical functionality. If **Block Input** is active by having **Block It** set to **True**, the action can interfere with subsequent UI or web automation actions that require physical mouse or keyboard input.
33
33
34
34
> [!NOTE]
35
-
> The Block Input action works only when you:
35
+
> The **Block Input** action works only when you:
36
36
>
37
37
> - Run a desktop flow through the console or debug it through the designer.
38
38
> - Run Power Automate for desktop runs by having elevated rights.
@@ -41,16 +41,16 @@ The Block Input action requires elevated rights to run because of its critical f
41
41
42
42
## Solution 1: Don't use the Block Input action
43
43
44
-
To prevent this issue, design your flow without the Block Input action, if possible.
44
+
To prevent this issue, design your flow without the **Block Input** action, if possible.
45
45
46
46
## Solution 2: Use alternative mouse and keyboard actions
47
47
48
-
If you have to use Block Input and perform mouse actions, use one of the following actions from the _Mouse and keyboard_ category instead of UI automation actions. For more information, see [Mouse and keyboard actions reference](/power-automate/desktop-flows/actions-reference/mouseandkeyboard).
48
+
If you have to use **Block Input** and perform mouse actions, use one of the following actions from the _Mouse and keyboard_ category instead of UI automation actions. For more information, see [Mouse and keyboard actions reference](/power-automate/desktop-flows/actions-reference/mouseandkeyboard).
49
49
50
50
### Alternative A: Use Move mouse and Send mouse click actions
51
51
52
-
1. Use the **Move mouse** action to move the mouse pointer to a specific position.
53
-
1. Use the **Send mouse click** action to perform the click.
52
+
1. Use the [Move mouse](/power-automate/desktop-flows/actions-reference/mouseandkeyboard?source=recommendations#movemouse) action to move the mouse pointer to a specific position.
53
+
1. Use the [Send mouse click](/power-automate/desktop-flows/actions-reference/mouseandkeyboard?source=recommendations#sendmouseclick) action to perform the click.
54
54
55
55
The **Move mouse** action requires you to specify coordinates. Use the **Relative to** parameter to specify whether the new mouse position is relative to:
56
56
@@ -60,15 +60,15 @@ The **Move mouse** action requires you to specify coordinates. Use the **Relativ
60
60
61
61
### Alternative B: Use Move mouse to Image action
62
62
63
-
Use the **Move mouse to Image** action by having the **Send Click after moving mouse** option enabled. This action moves the mouse to the position of a specified image on the screen, and then sends a click.
63
+
Use the [Move mouse to Image](/power-automate/desktop-flows/actions-reference/mouseandkeyboard#movemousetoimagebase) action by having the **Send a click after moving mouse** option enabled. This action moves the mouse to the position of a specified image on the screen, and then sends a click.
64
64
65
65
### Alternative C: Use Move mouse to Text on Screen (OCR) action
66
66
67
-
Use the **Move mouse to Text on Screen (OCR)** action by having the **Send a click after moving mouse** option enabled. This action uses optical character recognition (OCR) to locate text on the screen, moves the mouse to that position, and then sends a click.
67
+
Use the [Move mouse to Text on Screen (OCR)](/power-automate/desktop-flows/actions-reference/mouseandkeyboard#movemousetotextonscreenwithocraction) action by having the **Send a click after moving mouse** option enabled. This action uses optical character recognition (OCR) to locate text on the screen, moves the mouse to that position, and then sends a click.
68
68
69
69
### Solution 3: Temporarily disable Block Input
70
70
71
-
If you have to use Block Input but also have to perform actions that require physical input, use the following method:
71
+
If you have to use **Block Input** but also have to perform actions that require physical input, use the following method:
72
72
73
73
1. If you need input blocked, use the **Block Input** action by having **Block It** set to **True**.
74
74
1. Before you run a UI or web automation action that requires mouse or keyboard input, add a **Block Input** action that has **Block It** set to **False**.
0 commit comments