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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Trigger a simple mouse...
Power Automate
Unanswered

Trigger a simple mouse click event everytime a specific UI element updates/ changes value.

(0) ShareShare
ReportReport
Posted on by 2

How do i do this? I just downloaded Power Automate just watched some videos but cant seem to find anything on it. But i bet it is possible.

I have the same question (0)
  • mathiaskjeldsen Profile Picture
    224 on at

    This could be done by initializing two different Variables on the UI element. So first you want to identify the UI element, and then you subsequently create two variables - call the first initialState and the second currentState. Then you add a Loop action to continuously check the state of the UI element. Inside the Loop action you add "Get UI element property", and then inside that you add an If condition to compare the currentState variable with the initialState variable. If they aren't equal, trigger a mouse click.

     

    Put a delay on the whole flow, depending on how often you want it to run.

     

    That should do the trick. If this solved your problem please flag my answer as a solution 🙂

  • Neves077 Profile Picture
    2 on at

    ok that seems about right thank you so much because i wouldnt get there not even close!!! but ahm but like will this work if the value in case will change from Layer 0/418 and i need it to update everytime the value follows the sequence like from 0 to 1/418 and then 2/418 because i need a click for each layer change. Does this make sense?

  • VishnuReddy1997 Profile Picture
    2,656 Super User 2025 Season 2 on at

    Hi @Neves077 ,

     

    In Power Automate Desktop (PAD), you can use the UI Automation actions to interact with UI elements. However, PAD doesn’t provide a built-in way to trigger an action every time a specific UI element updates or changes its value.

     

    (Note:- if you got your solution you can mark as solution and gives kudos)


    Thanks & Regards

    Vishnu Reddy

  • mathiaskjeldsen Profile Picture
    224 on at

    Hey. For that you need to implement another Variable outside the loop condition that updates the initialState to what was now the currenState, so that the new initialState is 1 and then when it changes from 1 to 2, the Loop action captures the change. 

     

    So the initial variable starts at 0, then it loops through until it changes to 1, then you update the first variable to be 1 (as this is now "new normal"), and then it loops through again - when it then changes from 1 to 2, you do the same mouse click, update variable and start from the beginning again.

     

    Hope it makes sense.

     

    If this provided you with a solution, please mark it as Solution. 

     

    Thanks.

  • AK88 Profile Picture
    453 on at

    Hi @Neves077 ,

     

    You can play with custom selector by using UI Automation. It's better and advisable to to chose UI automation rather than mouse click events. Kindly try with UI Automation and make selectors as dynamic as you need. 

     

    if this answers your query kindly mark it as solution and give kudos.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard