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 / Keep Dialog Box on top...
Power Automate
Suggested Answer

Keep Dialog Box on top of other applications

(0) ShareShare
ReportReport
Posted on by
I have a PAD flow I cobbled together that opens up a display dialog onto one of my monitors to help with navigating an indexing program we use at my work. The issue I am running into is that this indexing program will every so often refresh itself and become the active window. Is there an action that can be implemented to make the display dialogue box always "active" when open?
 
Additionally, of my three monitors, the dialogue boxes for this flow always open on my leftmost monitor, while other flows that open dialogue boxes will open them in the middle monitor. Is there a way to control that behavior?
I have the same question (0)
  • Suggested answer
    Assisted by AI
    eetuRobo Profile Picture
    4,574 Super User 2026 Season 1 on at
    Do you mean that your PAD flow opens PAD display dialog -action which you have created? So one of the "Message boxes" -action groups display dialog -actions?


    If so most of those actions have setting called "Keep message box always on top". Toggle that on and test if that fixes the issue.


    "Display custom form" -action from Message boxes -action group is the only one that doesn't seem to have that setting.

    PAD does not have an action that would set a window be always on top/active. PAD does have an action called "Focus window" -which brings chosen window to the top/focused. So if the issue is that when your flow interacts with an app by Send keys -keys action for example then you could add the "Focus window" -action before the send keys -actions so that it will send the keys to the correct window. Prefer to use UI actions instead though rather than send keys. If you have for example "populate text field in window" -action to a certain UI text field then it doesn't matter if some other window pops up in front of it. The flow still writes to the correct field since it only writes to certain UI element and not just by sending keys blindly.

    You could also try using Microsoft PowerToys "Always on top" utility. So install PowerToys and focus the wanted window with the Always on top utility which keeps selected window always on top so no other window will pop on top of it.

    Or you could also try to change Registry hack. Geminis instructions on it:

    Method 1: The Registry Hack (Prevent Foreground Focus Stealing)

    You can tell Windows to strictly enforce a timeout, which prevents background applications from claiming the active window status.

    ⚠️ Note: Editing the Registry can cause issues if done incorrectly. It is highly recommended to before proceeding.

    1. Press Win + R, type regedit, and press Enter.

    2. In the left sidebar, navigate to the following folder:

      HKEY_CURRENT_USER\Control Panel\Desktop

    3. On the right side, look for a value named ForegroundLockTimeout.

      • If it doesn't exist: Right-click in the empty space, select New > DWORD (32-bit) Value, and name it ForegroundLockTimeout.

    4. Double-click ForegroundLockTimeout.

    5. Set the Base to Decimal and change the Value data to 200000 (which represents a 200,000-millisecond / 3-minute delay before any background window is allowed to steal focus).

    6. Click OK.

    7. Navigate to the value named ForegroundFlashCount in the same folder. Double-click it, select Decimal, and set the value to 3 (this will make the taskbar icon flash 3 times instead of pulling the window forward). Click OK.

    8. Close the Registry Editor and restart your computer for the changes to take effect.

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