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?

Brynwall's profile on WallpaperFusion.com
This function is supposed to take up 1/3 of the screen from the left, but it stopped working a while ago. Not sure what chaged:

using System;
using System.Drawing;
public static class DisplayFusionFunction
{
    public static void Run(IntPtr windowHandle)
    {
        Rectangle monitorRect = BFS.Monitor.GetMonitorWorkAreaByWindow(windowHandle);
        BFS.Window.SetSizeAndLocation(windowHandle, 
            monitorRect.Left + (int)(monitorRect.Width * 0.3333), monitorRect.Top, 
            monitorRect.Width - (int)(monitorRect.Width * 0.3333), monitorRect.Height);
    }
}


Error:
Run Failed.
Exception has been thrown by the target of an invocation.
Method not found: 'System.Drawing.Rectangle BFScripting.MonitorBase.GetMonitorWorkAreaByWindow(IntPtr)'.
[System.MissingMethodException]
[System.Reflection.TargetInvocationException]
• Attachment: DisplayFusion_oFk6jGHljz.png [152,363 bytes]
DisplayFusion_oFk6jGHljz.png
DisplayFusion_oFk6jGHljz.png
5 days ago  • #1
Owen Muhlethaler (BFS)'s profile on WallpaperFusion.com
4 days ago  • #2
Brynwall's profile on WallpaperFusion.com
That seems to have solved the issue. I wonder if they removed it during a Win 11 update..
1 hour ago  • #3
Subscribe to this discussion topic using RSS
Was this helpful?  Login to Vote(-)  Login to Vote(-)