cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Barani
Regular Visitor

Power Automate Desktop: Set the checkbox state in the window in which the window title changes dynamically (UI automation - Form filling)

Hi All,

 

I'm trying to create a flow where it checks the status of the checkbox for multiple windows (i.e. Windows app which changes the title dynamically). Currently, "set checkbox state window" in power automate desktop will allow to select form app window with the static title, but I need for desktop app window which changes title dynamically.

For e.g. In "Set checkbox state in the window", if we choose with Title "Demo App" and if that window changes its title to "Project A - Demo App" then "Set checkbox state in the window" unable to find the window.


Is there any possible way to get the result I needed?. So, any help would be greatly appreciated. Thanks in advance.

 

community_post_20220420.PNG

 

 

2 REPLIES 2
Adhil_08
Regular Visitor

Hi Barani,

 

Use the Action 'Get Window' and copy the window title variable , then use the action 'Set Window State' and past the variable .

Adhil_08_1-1650441427086.pngAdhil_08_0-1650441241880.png

 

 

 

 

Pavel_NaNoi
Continued Contributor
Continued Contributor

To get the required effect, I recommend doing what Adhil_08 suggested, but also using an "If Image exists" followed by a "Move mouse to image" action that checks for the checkbox image on screen and clicks on it (if there are multiple checkboxes designs, you can put multiple images in and tell it to check for each one until it finds one) don't be afraid of the reliability of this action as its honestly quite good at the moment and faster in some cases than UI element detection.


The reason I'm telling you to do this is because unfortunately I don't think there's a plausible way at the moment to make a dynamic title system unless everything in the title selector is exactly the same i.e. only the title changes in the selector and the rest of the path for the selector is exactly the same,, if that's the case use a custom selector, (I can help with that if needed)

 

Hope this helps.

Helpful resources

Announcements
 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

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