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 / How can I speed-up the...
Power Automate
Answered

How can I speed-up the desktop flows execution

(0) ShareShare
ReportReport
Posted on by 65

Hello,

When I start a desktop flow, I get the flow started notification.
This flow is sending the left window key, then type a string, then hit enter, wait for a window, type some text and start doing other things.
I have to wait 7 seconds for the first action to execute, then 5 seconds for the second action, then 7 seconds etc.
If I execute these steps by hand, I can do it much faster than the flow.
How Can I speed-up the execution?
See flow bellow.
Thanks,

Philippe

Snap4.png

I have the same question (0)
  • miketran13 Profile Picture
    720 on at

    Hi,

     

    While debugging, you can change the delay time to speed up the execution. 

    speed.png

    And when running without debugging, you have no worries about the speed.

    runn.png

     

    Thanks and hope it can help you. 

    Mike

    ---------------------------------

    Did I answer your question? Please consider to Mark my post as a solution! to guide others

  • pcand1001 Profile Picture
    65 on at

    I was referring to the runtime from the console, not the debugging.
    I guess that my question is still open. Now I think this PAF works by triggering something in the cloud.
    Could that be why it takes so long to start the execution? network latency, firewall rules, filters, round trips etc.
    Guys, I thought Automate Desktop was Desktop, not cloud. On Desktop their would be NO latency.
    Thoughts?

  • fraenK Profile Picture
    2,125 on at

    PAD always creates a flow session in the cloud environment before starting the flow to record the run details.

     

    Are you using the latest version of PAD? https://powerusers.microsoft.com/t5/Power-Automate-Desktop/New-releases-Power-Automate-Desktop-client/m-p/862541

     

    Multiple seconds delay between actions sounds strange. Does the task manager show signs of high load? Or are there any other (security/display) tools running so PAD needs more time to catch the right window?

  • pcand1001 Profile Picture
    65 on at

    I have tested on work and home machine with an internet connection around 400/25Mbps. I do not see much load at the time I run these flows. I created a few flows, they are all slow, some are VERY slow. I installed the desktop version a couple days ago. V2.5.39.21056

  • fraenK Profile Picture
    2,125 on at
  • pcand1001 Profile Picture
    65 on at

    I installed the version from the link, no change, still slower than what it should be.
    I can do it manually in 9 seconds
    Flow takes 35 seconds to complete
    This was when using the window key and type the app name.
    I changed to flow to use the Run Application action. This revised flow runs in 16 seconds, almost double than doing it manually. Still too slow.

  • fraenK Profile Picture
    2,125 on at

    Maybe it's the application you're trying to automate?

    Try to run and enter something in this AnyTellerDemo (just search for the name, had to remove the link, otherwise post was marked as spam and removed)

     

    You can copy/paste the following code, just change the app path and add the selectors (3 fields + button):

     

    DateTime.Local DateTimeFormat: DateTime.DateTimeFormat.DateAndTime CurrentDateTime=> CurrentDateTime
    System.RunApplicationAndWaitToLoad ApplicationPath: $'''C:\\Users\\user\\Downloads\\AnyTellerDemo.exe''' WindowStyle: System.ProcessWindowStyle.Normal Timeout: 0 ProcessId=> AppProcessId WindowHandle=> WindowHandle
    @@timestamp: '2021-03-19T17:53:14.8734109Z'
    UIAutomation.FormFilling.PopulateTextField TextField: appmask['Window \'frmAnyTeller\'']['Edit \'WindowsForms10.EDIT.app.0.378734a\''] Text: '123'
    @@timestamp: '2021-03-19T17:53:17.7583136Z'
    UIAutomation.FormFilling.PopulateTextField TextField: appmask['Window \'frmAnyTeller\'']['Edit \'WindowsForms10.EDIT.app.0.378734a\' 2'] Text: '456'
    @@timestamp: '2021-03-19T17:53:20.6835115Z'
    UIAutomation.FormFilling.PopulateTextField TextField: appmask['Window \'frmAnyTeller\'']['Edit \'WindowsForms10.EDIT.app.0.378734a\' 3'] Text: '678'
    @@timestamp: '2021-03-19T17:53:23.2672391Z'
    UIAutomation.FormFilling.PressButton Button: appmask['Window \'frmAnyTeller\'']['Button \'Accept\'']
    DateTime.Local DateTimeFormat: DateTime.DateTimeFormat.DateAndTime CurrentDateTime=> CurrentDateTime2
    DateTime.Subtract FromDate: CurrentDateTime2 SubstractDate: CurrentDateTime TimeUnit: DateTime.DifferenceTimeUnit.Seconds TimeDifference=> TimeDifference
    Display.ShowMessage Message: TimeDifference Icon: Display.Icon.None Buttons: Display.Buttons.OK DefaultButton: Display.DefaultButton.Button1 IsTopMost: False ButtonPressed=> ButtonPressed

     

    Execution takes 3,9 seconds on my machine from the console

  • pcand1001 Profile Picture
    65 on at

    That is 9.4 seconds on my machine.
    Teller opens quickly, then there is a few seconds delay before the first text is entered.

  • fraenK Profile Picture
    2,125 on at

    Strange! Tried it on another machine and it runs in 4 seconds.

    What CPU does your machine have?

  • pcand1001 Profile Picture
    65 on at

    I need to test from somewhere else than from my home network. I did run the same AnyTeller test on my home machine and it took 127 seconds!
    The laptop is a XPS i7 10875H @ 2.3GHz SSD System 32GB RAM
    The home machine is a Vostro i7 10700 @ 2.9GHz, SSD system 16GB RAM
    Other test I could do, reboot Router, Disable anti-virus and firewall and see it that helps. Then Run the test on remote machine which is at work, then try on another older XPS laptop and work laptop as well on Wifi using my mobile phone as a hotspot?

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 594

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 281 Super User 2026 Season 1

Last 30 days Overall leaderboard