Showing results for 
Search instead for 
Did you mean: 
New Member

Randomize mouse mouvement & speed

Hello all,


The mouse click feature is great but the movement generated is very linear and could be seen as unnatural (ex: bots) by some reporting tools.

Question 1:
How could I define a random X/Y position within some boundaries to avoid clicking on unwanted elements on the screen?

Question 2:
How could I define the mouse speed to go to that location? The three predefined speeds are too slow.



Hey @Klintistwood 


You can generate two random numbers for the coordinates (x & y) that are within your boundaries, and use those in the 'Send mouse click' action like so:




Set the randomly generated numbers in "X" and "Y" :



You can define the movement speed from the settings of the "Send mouse click" action:




If you want to randomize this as well, you can generate another random number (lets say for 1 to 4) and then by using conditionals you can add the action with different speed settings.


So for example: 

If random number == 1 then run the "Send mouse click" action with a configured mouse movement style set to instant. 

else if random number == 2 then run the "Send mouse click" action with a configured mouse movement style set to Low speed




Hope this helped. Let me know if you need more assistance.






Helpful resources

Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (4,281)