web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Randomize mouse mouvem...
Power Automate
Unanswered

Randomize mouse mouvement & speed

(0) ShareShare
ReportReport
Posted on by 5

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.

Thanks

I have the same question (0)
  • kostasc Profile Picture
    Microsoft Employee on at

    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:

     

    kostasc_0-1628510862580.png

     

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

    kostasc_1-1628510946669.png

     

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

     

    kostasc_2-1628511081020.png

     

    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

    etc.

     

     

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

     

     

     

     

     

  • Yole Profile Picture
    17 on at

    Nice solution, but the mouse track curve is too "hard" by only two points.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 229 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 227

#3
Haque Profile Picture

Haque 181

Last 30 days Overall leaderboard