<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/">
<channel>
<title>DisplayFusion RSS: Scripted Functions fail compilation on Windows on ARM</title>
<atom:link href="https://www.displayfusion.com/Discussions/RSS/?TopicID=019eb9db-a1cd-7241-bfbc-35f4e6c58e9a" rel="self" type="application/rss+xml" />
<link>https://www.displayfusion.com/Discussions/RSS/?TopicID=019eb9db-a1cd-7241-bfbc-35f4e6c58e9a</link>
<description>DisplayFusion RSS: Scripted Functions fail compilation on Windows on ARM</description>
<lastBuildDate>Mon, 27 Jul 2026 21:38:55 GMT</lastBuildDate>
<language>en</language>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<generator>https://www.displayfusion.com/Discussions/RSS/?TopicID=019eb9db-a1cd-7241-bfbc-35f4e6c58e9a</generator>
<item>
<title>RE: Scripted Functions fail compilation on Windows on ARM</title>
<link>https://www.displayfusion.com/Discussions/View/scripted-functions-fail-compilation-on-windows-on-arm/?ID=019eb9db-a1cd-7241-bfbc-35f4e6c58e9a#8</link>
<pubDate>Tue, 14 Jul 2026 14:41:16 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/scripted-functions-fail-compilation-on-windows-on-arm/?ID=019eb9db-a1cd-7241-bfbc-35f4e6c58e9a#8</guid>
<category>DisplayFusion</category>
<description><![CDATA[Glad to hear it, thanks for letting us know!]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Glad to hear it, thanks for letting us know!
</div>
]]></content:encoded>
<media:thumbnail url="https://www.displayfusion.com/Discussions/Download/?ID=019eb9db-adc2-779b-a4ad-d657ec327696"/>
</item>
<item>
<title>RE: Scripted Functions fail compilation on Windows on ARM</title>
<link>https://www.displayfusion.com/Discussions/View/scripted-functions-fail-compilation-on-windows-on-arm/?ID=019eb9db-a1cd-7241-bfbc-35f4e6c58e9a#7</link>
<pubDate>Sun, 12 Jul 2026 15:13:02 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/scripted-functions-fail-compilation-on-windows-on-arm/?ID=019eb9db-a1cd-7241-bfbc-35f4e6c58e9a#7</guid>
<category>DisplayFusion</category>
<description><![CDATA[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!]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
<div class="BackGrey"><div class="Text"><div><b>Quote:</b></div>We've just released 12.1 Beta 4, and it should fix this issue up <img src="https://www.displayfusion.com/MediaCommon/SVGs/FontAwesome/face-smile.light.svg" alt=":)" style="box-sizing:border-box;position:relative;overflow:hidden;vertical-align:middle !important;width:16px;height:16px;" HelpButtonData=":)" /></div></div><br/>
<br/>
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!<br/>
<br/>
Thanks!
</div>
]]></content:encoded>
<media:thumbnail url="https://www.displayfusion.com/Discussions/Download/?ID=019eb9db-adc2-779b-a4ad-d657ec327696"/>
</item>
<item>
<title>RE: Scripted Functions fail compilation on Windows on ARM</title>
<link>https://www.displayfusion.com/Discussions/View/scripted-functions-fail-compilation-on-windows-on-arm/?ID=019eb9db-a1cd-7241-bfbc-35f4e6c58e9a#6</link>
<pubDate>Fri, 10 Jul 2026 19:10:51 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/scripted-functions-fail-compilation-on-windows-on-arm/?ID=019eb9db-a1cd-7241-bfbc-35f4e6c58e9a#6</guid>
<category>DisplayFusion</category>
<description><![CDATA[We've just released 12.1 Beta 4, and it should fix this issue up]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
We've just released 12.1 Beta 4, and it should fix this issue up <img src="https://www.displayfusion.com/MediaCommon/SVGs/FontAwesome/face-smile.light.svg" alt=":)" style="box-sizing:border-box;position:relative;overflow:hidden;vertical-align:middle !important;width:16px;height:16px;" HelpButtonData=":)" />
</div>
]]></content:encoded>
<media:thumbnail url="https://www.displayfusion.com/Discussions/Download/?ID=019eb9db-adc2-779b-a4ad-d657ec327696"/>
</item>
<item>
<title>RE: Scripted Functions fail compilation on Windows on ARM</title>
<link>https://www.displayfusion.com/Discussions/View/scripted-functions-fail-compilation-on-windows-on-arm/?ID=019eb9db-a1cd-7241-bfbc-35f4e6c58e9a#5</link>
<pubDate>Thu, 18 Jun 2026 19:59:34 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/scripted-functions-fail-compilation-on-windows-on-arm/?ID=019eb9db-a1cd-7241-bfbc-35f4e6c58e9a#5</guid>
<category>DisplayFusion</category>
<description><![CDATA[Ok, thanks for trying that anyway. We did find the issue here and it will be fixed up for the next beta]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Ok, thanks for trying that anyway. We did find the issue here and it will be fixed up for the next beta <img src="https://www.displayfusion.com/MediaCommon/SVGs/FontAwesome/face-smile.light.svg" alt=":)" style="box-sizing:border-box;position:relative;overflow:hidden;vertical-align:middle !important;width:16px;height:16px;" HelpButtonData=":)" />
</div>
]]></content:encoded>
<media:thumbnail url="https://www.displayfusion.com/Discussions/Download/?ID=019eb9db-adc2-779b-a4ad-d657ec327696"/>
</item>
<item>
<title>RE: Scripted Functions fail compilation on Windows on ARM</title>
<link>https://www.displayfusion.com/Discussions/View/scripted-functions-fail-compilation-on-windows-on-arm/?ID=019eb9db-a1cd-7241-bfbc-35f4e6c58e9a#4</link>
<pubDate>Wed, 17 Jun 2026 06:25:49 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/scripted-functions-fail-compilation-on-windows-on-arm/?ID=019eb9db-a1cd-7241-bfbc-35f4e6c58e9a#4</guid>
<category>DisplayFusion</category>
<description><![CDATA[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 do...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
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...<br/>
<br/>
Thanks, again for looking into this.<br/>
<br/>
Edit: I just want to clarify that I <b>did</b> download and install that file you linked, just in case.
</div>
]]></content:encoded>
<media:thumbnail url="https://www.displayfusion.com/Discussions/Download/?ID=019eb9db-adc2-779b-a4ad-d657ec327696"/>
</item>
<item>
<title>RE: Scripted Functions fail compilation on Windows on ARM</title>
<link>https://www.displayfusion.com/Discussions/View/scripted-functions-fail-compilation-on-windows-on-arm/?ID=019eb9db-a1cd-7241-bfbc-35f4e6c58e9a#3</link>
<pubDate>Tue, 16 Jun 2026 14:09:53 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/scripted-functions-fail-compilation-on-windows-on-arm/?ID=019eb9db-a1cd-7241-bfbc-35f4e6c58e9a#3</guid>
<category>DisplayFusion</category>
<description><![CDATA[We were able to reproduce this issue here and will get it fixed up in the next beta of DisplayFusion. Meantime, if you install the ARM64 .Net 10 Desktop Runtime from the link below, that should get it fixed up with the current version.
https://builds.dotnet.microsoft.com/dotnet/WindowsDesktop/10...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
We were able to reproduce this issue here and will get it fixed up in the next beta of DisplayFusion. Meantime, if you install the ARM64 .Net 10 Desktop Runtime from the link below, that should get it fixed up with the current version.<br/>
<br/>
<a href="https://builds.dotnet.microsoft.com/dotnet/WindowsDesktop/10.0.9/windowsdesktop-runtime-10.0.9-win-arm64.exe" target="_blank" rel="nofollow"><b>https://builds.dotnet.microsoft.com/dotnet/WindowsDesktop/10.0.9/windowsdesktop-runtime-10.0.9-win-arm64.exe</b></a><br/>
<br/>
Thanks!
</div>
]]></content:encoded>
<media:thumbnail url="https://www.displayfusion.com/Discussions/Download/?ID=019eb9db-adc2-779b-a4ad-d657ec327696"/>
</item>
<item>
<title>RE: Scripted Functions fail compilation on Windows on ARM</title>
<link>https://www.displayfusion.com/Discussions/View/scripted-functions-fail-compilation-on-windows-on-arm/?ID=019eb9db-a1cd-7241-bfbc-35f4e6c58e9a#2</link>
<pubDate>Fri, 12 Jun 2026 14:31:39 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/scripted-functions-fail-compilation-on-windows-on-arm/?ID=019eb9db-a1cd-7241-bfbc-35f4e6c58e9a#2</guid>
<category>DisplayFusion</category>
<description><![CDATA[We'll test this out here and see what we can find out. We'll keep you posted when we have more news.
Thanks!]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
We'll test this out here and see what we can find out. We'll keep you posted when we have more news.<br/>
<br/>
Thanks!
</div>
]]></content:encoded>
<media:thumbnail url="https://www.displayfusion.com/Discussions/Download/?ID=019eb9db-adc2-779b-a4ad-d657ec327696"/>
</item>
<item>
<title>Scripted Functions fail compilation on Windows on ARM</title>
<link>https://www.displayfusion.com/Discussions/View/scripted-functions-fail-compilation-on-windows-on-arm/?ID=019eb9db-a1cd-7241-bfbc-35f4e6c58e9a</link>
<pubDate>Fri, 12 Jun 2026 03:23:59 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/scripted-functions-fail-compilation-on-windows-on-arm/?ID=019eb9db-a1cd-7241-bfbc-35f4e6c58e9a</guid>
<category>DisplayFusion</category>
<description><![CDATA[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...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
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.<br/>
<br/>
A sample script follows:<br/>
<br/>
<div class="col-md-12 BoxWrap"><div class="Box table-responsive"><a name="code" style="width:0; height:0;"></a><h2 class="TableTitle" style="border:0"><div class="TableTitleText">Code</div><div class="TitleButtons"><div class="TableTitleButton"><a href="#" onclick="return false;" data-clipboard-target="#code019fa58440d2717f9f12bbc593f1b04f" class="ClipboardCopyControl"><img src="https://www.displayfusion.com/MediaCommon/SVGs/FontAwesome/clone.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;width:auto;max-width:16px;height:16px;" /><span class="Text">Copy</span></a></div><div class="TableTitleButton"><a href="#" onclick="bfs.util.codeEditorSelectAll('code019fa58440d2717f9f12bbc593f1b04fJs'); return false;"><img src="https://www.displayfusion.com/MediaCommon/SVGs/FontAwesome/square-check.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;width:auto;max-width:16px;height:16px;" /><span class="Text">Select All</span></a></div></div></h2><div class="TableTitleContent table-responsive"><div class="AceEditorWrapper" style="border-top:solid 1px var(--color-default-border);padding:0"><pre id="code019fa58440d2717f9f12bbc593f1b04fJs" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%; min-height:75px;">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 );
    }
}</pre><textarea id="code019fa58440d2717f9f12bbc593f1b04f" name="code019fa58440d2717f9f12bbc593f1b04f" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div><br/>
<br/>
The compilation errors I am getting are:<br/>
<br/>
<div class="col-md-12 BoxWrap"><div class="Box table-responsive"><a name="code" style="width:0; height:0;"></a><h2 class="TableTitle" style="border:0"><div class="TableTitleText">Code</div><div class="TitleButtons"><div class="TableTitleButton"><a href="#" onclick="return false;" data-clipboard-target="#code019fa58440d5705eb768e5baf7773db7" class="ClipboardCopyControl"><img src="https://www.displayfusion.com/MediaCommon/SVGs/FontAwesome/clone.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;width:auto;max-width:16px;height:16px;" /><span class="Text">Copy</span></a></div><div class="TableTitleButton"><a href="#" onclick="bfs.util.codeEditorSelectAll('code019fa58440d5705eb768e5baf7773db7Js'); return false;"><img src="https://www.displayfusion.com/MediaCommon/SVGs/FontAwesome/square-check.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;width:auto;max-width:16px;height:16px;" /><span class="Text">Select All</span></a></div></div></h2><div class="TableTitleContent table-responsive"><div class="AceEditorWrapper" style="border-top:solid 1px var(--color-default-border);padding:0"><pre id="code019fa58440d5705eb768e5baf7773db7Js" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%; min-height:75px;">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]</pre><textarea id="code019fa58440d5705eb768e5baf7773db7" name="code019fa58440d5705eb768e5baf7773db7" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div><br/>
<br/>
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.<br/>
<br/>
I have over 30 scripted functions I use to wrangle my workspaces into submission... I am at a loss. Please help?<br/>
<br/>
<img src="https://www.displayfusion.com/MediaCommon/SVGs/FontAwesome/face-laugh-squint.light.svg" alt=":D" style="box-sizing:border-box;position:relative;overflow:hidden;vertical-align:middle !important;width:16px;height:16px;" HelpButtonData=":D" />
</div>
]]></content:encoded>
<media:thumbnail url="https://www.displayfusion.com/Discussions/Download/?ID=019eb9db-adc2-779b-a4ad-d657ec327696"/>
</item>
</channel>
</rss>