Double -click specific points
Power Automate Desktop has many actions that submit operations that users perform through her IO device, such as keyboards and mice.
However, there are so many actions that can be used, so it is often difficult to find the purpose of the purpose.
This time, I will explain how to reproduce the operation of double -clicking a specific point using his mouse.
Details of "Mouse click transmission" action
This time, we use an action called "Send Mouse Click".
The action has the following parameters.
Parameter name | value |
---|---|
Mouse event to send | Which mouse event to operate (double click this time) |
delay | Waiting time until the event is executed (milliseconds) |
Moving mouse | After checking, the event will be executed after moving to the specified coordinates. |
X | Moving X coordinates (horizontal direction) |
Y | Moving Y coordinates (vertical direction) |
screen | Select whether the coordinates are based on the entire screen or the relative coordinates of the front window |
Mouse movement style | Select the speed to move the orbit up to the target coordinates |
implemented with copy and paste
This time, as a sample, we have prepared a flow to specify relative coordinates from the active window and send a double -click.
Copy the following code and paste it on the edit screen of Power Automate Desktop to add the target action.
MouseAndKeyboard.SendMouseClick.ClickAt ClickType: MouseAndKeyboard.MouseClickType.DoubleClick MillisecondsDelay: 0 X: 100 Y: 200 RelativeTo: MouseAndKeyboard.PositionRelativeTo.ActiveWindow MovementStyle: MouseAndKeyboard.MovementStyle.AnimateNormal
Operate and implement Power Automate Desktop
Enter "Mouse click transmission" from "Action Search".
Set the parameter as follows
Mouse click transmissionSend a mouse click eventパラメーターの選択Mouse event to sendDouble clickdelay0Moving mousecheckX100Y200screenActive windowMouse movement stylestraight awayBy execution, a double -click is sent to the specified coordinates for an active window.
Exceptions that can occur
If the click coordinates are specified so that they are outside the screen, an error will be made.In addition, clicks may not be sent for other reasons and may cause an error.
We recommend that you implement block processing.