Processing Ajax...

Title
Close Dialog

Message

Confirm
Close Dialog

Confirm
Close Dialog

Confirm
Close Dialog

User Image
Hiep3
2 discussion posts
I am writing this simple script which swaps all windows from one monitor to the other (ie., from monitor 2 to monitor 3 and vice versa)
The problem is that it seems to swap ALL windows in ALL virtual desktops (I am running 2 virtual desktops) instead of just the one virtual desktop visible.
Is there a simple modification for that?
Thx

IntPtr[] handles3 = BFS.Window.GetVisibleWindowHandlesByMonitor(3);        
            IntPtr[] handles2 = BFS.Window.GetVisibleWindowHandlesByMonitor(2);
    
        
        // loop through window handles and send each to the next monitor
        for (int j = 0; j < handles2.Length; j++)
            BFS.Window.MoveToMonitor(3, handles2 [j]);

        for (int j = 0; j < handles3.Length; j++)
            BFS.Window.MoveToMonitor(2, handles3 [j]);
Mar 22, 2024  • #1
Owen Muhlethaler (BFS)'s profile on WallpaperFusion.com
It's likely related to the 2nd point in this post: https://www.displayfusion.com/Discussions/View/windows-1011-known-issues/?ID=e71e1f5e-9e07-4f7d-b179-22253db2c30f

When windows are on DisplayFusion taskbars, they don't register to the virtual desktop so they appear on every desktop, which means it will grab every window when you try to switch
Mar 22, 2024  • #2
User Image
Hiep3
2 discussion posts
After having reviewed previous discussions on this board, it is apparent to me at DF does not support virtual desktops. I will therefore vote for that future feature. In the meantime, I am doing this through autohotkey. Thx
Mar 22, 2024  • #3
Owen Muhlethaler (BFS)'s profile on WallpaperFusion.com
Vote added!
Mar 22, 2024  • #4
Subscribe to this discussion topic using RSS
Was this helpful?  Login to Vote(-)  Login to Vote(-)