Вход на сайт

Просмотр новости

Найдите то, что Вас интересует

RE: Scripted Functions fail compilation on Windows on ARM

Дата публикации: 14-07-2026 14:41:16

Glad to hear it, thanks for letting us know!

Основное содержимое страницы с новостью.

User Image

Ben Watson

5 discussion posts

I am running DisplayFusion 12.1 Beta 3 on a M2 Max MacBook Pro with Windows 11 24H2 running on Parallels Desktop 26.3.3 and macOS Tahoe 26.5.1. None of that Mac stuff should matter, though. I also experienced this issue on the latest release version, which is why I am trying the beta. My scripted functions which work fine on my Ryzen and Intel PCs fail to work.

A sample script follows:

Code

using System;
using System.Drawing;

// The 'windowHandle' parameter will contain the window handle for the:
// - Active window when run by hotkey
// - Window Location target when run by a Window Location rule
// - TitleBar Button owner when run by a TitleBar Button
// - Jump List owner when run from a Taskbar Jump List
// - Currently focused window if none of these match

public static class DisplayFusionFunction

{

   public static void Run(IntPtr windowHandle)

   {          
        //check to see if there was an error, if there was, exit function
        if (windowHandle == IntPtr.Zero)
            return;

        //get the position of the window in the monitor, and the current monitor
        Rectangle windowRect = BFS.Window.GetBounds(windowHandle);
        Rectangle monitorRect = BFS.Monitor.GetMonitorWorkAreaByWindow(windowHandle);

        int iFinalWinW = ((monitorRect.Width * 87) / 100) / 2;
        int iFinalWinH = monitorRect.Height;

        int iFinalWinX = monitorRect.X + monitorRect.Width - ((monitorRect.Width * 87) / 100);
        int iFinalWinY = monitorRect.Y + 0;

        BFS.Window.SetSizeAndLocation(windowHandle, iFinalWinX, iFinalWinY, iFinalWinW, iFinalWinH );
    }
}

The compilation errors I am getting are:

Code

Line  Char  Description

23    3     The type name 'Rectangle' could not be found in the namespace 'System.Drawing'. This type has been forwarded to assembly 'System.Drawing.Primitives, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Consider adding a reference to that assembly.
23    26    The type 'Rectangle' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Drawing.Primitives, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
24    3     The type name 'Rectangle' could not be found in the namespace 'System.Drawing'. This type has been forwarded to assembly 'System.Drawing.Primitives, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Consider adding a reference to that assembly.
24    27    The type 'Rectangle' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Drawing.Primitives, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
0     0     Error: Compile failed. [System.Exception]

I added a reference to System.Drawing.Primitives. It made no difference. I added it to using at the top, no change. I installed .Net runtimes for version 5, 7, 8 ,9 and 10. No change. ChatGPT and Gemini both had me try a bunch of stuff, none of which worked.

I have over 30 scripted functions I use to wrangle my workspaces into submission... I am at a loss. Please help?

:D

• Attachment [protected]: DisplayFusion-Compilation-Errror.png [227,676 bytes]

Jun 12, 2026 (modified Jun 12, 2026)  • #1

Keith Lammers (BFS)'s profile on WallpaperFusion.com

We'll test this out here and see what we can find out. We'll keep you posted when we have more news.

Thanks!

Keith Lammers (BFS)'s profile on WallpaperFusion.com

User Image

Ben Watson

5 discussion posts

Thanks for getting this looked at so quickly. And, I really do hope the next beta fixes this issue, however installing that Windows Desktop Runtime did not solve my issue and it is one of the ones I tried already...

Thanks, again for looking into this.

Edit: I just want to clarify that I did download and install that file you linked, just in case.

28 days ago (modified 28 days ago)  • #4

Keith Lammers (BFS)'s profile on WallpaperFusion.com

Ok, thanks for trying that anyway. We did find the issue here and it will be fixed up for the next beta :)

Keith Lammers (BFS)'s profile on WallpaperFusion.com

We've just released 12.1 Beta 4, and it should fix this issue up :)

User Image

Ben Watson

5 discussion posts

Quote:

We've just released 12.1 Beta 4, and it should fix this issue up :)

I meant to pop on here and than you all for the update. I saw it the other dady and installed it, and yay! It's working again!

Thanks!

Keith Lammers (BFS)'s profile on WallpaperFusion.com

Glad to hear it, thanks for letting us know!

Subscribe to this discussion topic using RSS

Схожие новости

#Наименование новостиТональностьИнформативностьДата публикации
1RE: Start Menu shows only left column on portrait monitor when main taskbar centered (Win11)0513-07-2026
2RE: Snapped windows won't resize on extended monitors0515-07-2026
3RE: How can i move the windows 11 Snipping Tool overlay dialog to the active monitor?0214-07-2026
4RE: Display Fusion causing major lag in games when moving mouse.0215-07-2026
5RE: DP 12.1 Beta 3 - Titlebar icon flickering5314-07-2026
6RE: Displayfusion 12.1 (Beta 4) not starting on Windows 100514-07-2026
7RE: Feature Request - Timer to Monitor Fading-5213-07-2026
8Mehrere Probleme in perl-IO-Compress (Fedora)0508-07-2026
9Starting the output failed. Please check log for details0003-07-2026
10Mehrere Probleme in perl-Compress-Raw-Bzip2 (Fedora)0508-07-2026

Классификация: Пресс-релизы. Схожих патентов: 0. Схожих новостей: 10. Тональность: 5. Информативность: 3. Источник: www.clipboardfusion.com.