Double-click a specific point
Power Automate Desktop provides many actions that stand in for the operations users perform through input devices such as the keyboard and mouse.
However, there are so many actions available that you may often have trouble finding the one you actually need.
This article explains how to reproduce double-clicking a specific point with the mouse.
About the “Send mouse click” action
Section titled “About the “Send mouse click” action”The action used in this article is “Send mouse click”.
The action has the following parameters.
| Parameter | Value |
|---|---|
| Mouse event to send | Which mouse event to send (“Double click” in this article) |
| Wait | How long to wait before sending the event (in milliseconds) |
| Move mouse | When turned on, the mouse moves to the specified coordinates before the event is sent |
| X | The X coordinate to move to (horizontal) |
| Y | The Y coordinate to move to (vertical) |
| Relative to | Choose whether the coordinates are relative to the top-left corner of the screen, the top-left corner of the active window, or the current mouse position |
| Mouse movement style | Choose how the mouse moves to the target coordinates (instantly or with animation) and at what speed |

Implement by copying and pasting
Section titled “Implement by copying and pasting”As a sample, here’s a flow that specifies coordinates relative to the active window and sends a double-click.
Copy the following code and paste it into the Power Automate Desktop flow designer to add the action.
MouseAndKeyboard.SendMouseClick.ClickAt ClickType: MouseAndKeyboard.MouseClickType.DoubleClick MillisecondsDelay: 0 X: 100 Y: 200 RelativeTo: MouseAndKeyboard.PositionRelativeTo.ActiveWindow MovementStyle: MouseAndKeyboard.MovementStyle.AnimateNormalImplement in Power Automate Desktop
Section titled “Implement in Power Automate Desktop”-
In “Search actions”, type “Send mouse click”.
-
Set the parameters as follows.
Send mouse clickSends a mouse click eventSelect parameters- Mouse event to send
- Double click
- Wait
- 0
- Move mouse
- On
- X
- 100
- Y
- 200
- Relative to
- Active window
- Mouse movement style
- With animation (normal speed)
-
When you run the flow, a double-click is sent to the specified coordinates in the active window.
Possible exceptions
Section titled “Possible exceptions”An error occurs if the specified coordinates to click are outside the screen. An error also occurs if the flow runs in non-interactive mode or if the click can’t be sent for some other reason.
We recommend setting up error handling with an “On block error” block.