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
Fear na Boinne
38 discussion posts
My PC regularly screws up my window positioning, because my main monitor is sometimes slow with providing the required information, and then it resizes all windows to the size of the tiny statistics monitor built into my case.
(My main is a 4k screen, the stats screen is 1024x600)

Sometimes Windows even moves all windows to that tiny screen, leaving me with an empty main display, and a headache of dragging all windows that happen to NOT be in a previously saved Window Position Profile manually back to the main screen...

It would be great if I could automatically save all positions at either an X amount of idle time, or when the PC shuts down or goes into sleep or hibernation.

Two issues with that:
1) No Triggers for shutdown, sleep or hibernation, but I could probably work around that, as in 90% of the cases, I trigger those through a press on my streamdeck, so I could add something there to trigger DisplayFusion events.
2) No way to automatically save (and overwrite) a Window Position Profile that I can find...

Does anyone know of a way to achieve #2? (#1 would be nice to know, but #2 is what I'd like to know most!)

PS: I know about 'Move all apps to monitor X', but that doesn't fix the resizing issue, and I do want the apps that belong on the 2nd screen to remain on there... Also, there's no 'ignore monitor splits' versions for that set of functions...
Aug 17, 2024  • #1
User Image
JLJTGR
104 discussion posts
Add a new scripted function with the following and change the profile name to what you want...

Code

using System;
public static class DisplayFusionFunction
{
    public static void Run(IntPtr windowHandle)
    {
        BFS.DisplayFusion.SaveWindowPositionProfile("Some Profile Name");
    }
}
Aug 18, 2024  • #2
User Image
Fear na Boinne
38 discussion posts
Sorry for the delay, I've been busy with travel (work), a.s.o., so I haven 't been able to look at this in a while.

I'll have a try and see what I can do with this!

Thanks for the effort! 8)
Sep 10, 2024  • #3
User Image
Fear na Boinne
38 discussion posts
It appears to be working, but I have not yet had a need to test it, because since then the monitors and windows have been behaving...
Sep 13, 2024  • #4
Keith Lammers (BFS)'s profile on WallpaperFusion.com
You could try this out as well. It says it's for docking/undocking, but would also apply to any other monitor changes that happen, like if you regularly power off a monitor or whatever:

https://www.displayfusion.com/HelpGuide/AutomaticallySavingAndRestoringWindowPositionsOnDockUndock/
Sep 13, 2024  • #5
User Image
Fear na Boinne
38 discussion posts
That looks interested... Thanks for that
Sep 13, 2024  • #6
Subscribe to this discussion topic using RSS
Was this helpful?  Login to Vote(-)  Login to Vote(-)