Processing Ajax...

Title
Close Dialog

Message

Confirm
Close Dialog

Confirm
Close Dialog

Confirm
Close Dialog

User Image
badbob001
64 discussion posts
I want to perform actions to only a particular split like:
- minimize windows to show desktop
- restore windows (from above action)
- maximize all visible windows

End goal is to tie each split to a particular hotkey like a button on the number pad:
eg:
7: toggle show/hide desktop in split
shift-7: maximize visible windows in split
Mar 28, 2022  • #1
Owen Muhlethaler (BFS)'s profile on WallpaperFusion.com
For the minimize/maximize windows, you can preface your script with this line:

Code

BFS.Window.GetVisibleWindowHandlesByMonitor(SplitID);


The split ID will use a 0 instead of a dot, so split 1.1 would look like this:

Code

BFS.Window.GetVisibleWindowHandlesByMonitor(101);


For restoring windows, you'll have to track the state with the ScriptSettings functions: https://www.displayfusion.com/ScriptedFunctions/Help/#bfs_scriptsettings

For example, you'd have two code-paths in the script, one that minimizes the windows and sets a registry bool to true, and one that restores the windows and sets that registry bool back to false.

Hope that helps!
Mar 31, 2022  • #2
Subscribe to this discussion topic using RSS
Was this helpful?  Login to Vote(-)  Login to Vote(-)