Processing Ajax...

Title

Message

Confirm

Confirm

Confirm

Confirm

Are you sure you want to delete this item?

Confirm

Are you sure you want to delete this item?

Confirm

Are you sure?

User Image
Krakerman
2 discussion posts
I need some help trying to figure how to restore window and maximize it.

I created a trigger that when a specific process is created with use the following function: Minimize All Windows Except Current Window (All Monitors)

That works perfectly however I create another trigger that when that specific process ends I need it to restore all the windows that got minimized or in this case there is just one.

Is there a function like: Maximize All Windows Except Current Window (All Monitors)? To restore what the first function does.
Jun 9, 2019 (modified Jun 9, 2019)  • #1
Keith Lammers (BFS)'s profile on WallpaperFusion.com
There isn't a built-in function for that, but you could use a Scripted Function in the Trigger. This code would restore all minimized windows:

Code

using System;
using System.Drawing;

public static class DisplayFusionFunction
{
    public static void Run(IntPtr windowHandle)
    {
        foreach (IntPtr window in BFS.Window.GetVisibleAndMinimizedWindowHandles())
        {
            if (BFS.Window.IsMinimized(window))
            {
                BFS.Window.Restore(window);
            }
        }
    }
}
Jun 10, 2019  • #2
User Image
Krakerman
2 discussion posts
Thanks! Appreciate getting back to me and will give this a try.
Jun 11, 2019  • #3
Subscribe to this discussion topic using RSS
Was this helpful?  Login to Vote(-)  Login to Vote(-)