<?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 don't work anymore</title>
<atom:link href="https://www.displayfusion.com/Discussions/RSS/?TopicID=01951f14-297d-77a8-88ee-20b474534a45" rel="self" type="application/rss+xml" />
<link>https://www.displayfusion.com/Discussions/RSS/?TopicID=01951f14-297d-77a8-88ee-20b474534a45</link>
<description>DisplayFusion RSS: Scripted Functions don't work anymore</description>
<lastBuildDate>Fri, 15 May 2026 15:24:44 GMT</lastBuildDate>
<language>en</language>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<generator>https://www.displayfusion.com/Discussions/RSS/?TopicID=01951f14-297d-77a8-88ee-20b474534a45</generator>
<item>
<title>RE: Scripted Functions don't work anymore</title>
<link>https://www.displayfusion.com/Discussions/View/scripted-functions-dont-work-anymore/?ID=01951f14-297d-77a8-88ee-20b474534a45#4</link>
<pubDate>Mon, 24 Feb 2025 18:33:15 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/scripted-functions-dont-work-anymore/?ID=01951f14-297d-77a8-88ee-20b474534a45#4</guid>
<category>DisplayFusion</category>
<description><![CDATA[Thanks, that solved the problem. And I think I know how it broke:
I had the 'Microsoft Windows Desktop Runtime - 8.0.5 (x64)' installed. Sometime in the last weeks a Print&Scan utility from Brother installed an update and with that it installed 'Microsoft Windows Desktop Runtime - 8.0.13 (x86)'....]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Thanks, that solved the problem. And I think I know how it broke:<br/>
<br/>
I had the 'Microsoft Windows Desktop Runtime - 8.0.5 (x64)' installed. Sometime in the last weeks a Print&Scan utility from Brother installed an update and with that it installed 'Microsoft Windows Desktop Runtime - 8.0.13 (<b>x86</b>)'. <br/>
The '8.0.5 (x64)'-version was still there, but it seems that DisplayFusion could not use it anymore.<br/>
<br/>
I installed the 'Microsoft Windows Desktop Runtime - 8.0.13 (<b>x64</b>)' which you recommended and now DisplayFusion works again.<br/>
The x86 and x64 runtime are now installed side-by-side because the Brother utility needs the x86-version.
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Scripted Functions don't work anymore</title>
<link>https://www.displayfusion.com/Discussions/View/scripted-functions-dont-work-anymore/?ID=01951f14-297d-77a8-88ee-20b474534a45#3</link>
<pubDate>Mon, 24 Feb 2025 15:17:47 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/scripted-functions-dont-work-anymore/?ID=01951f14-297d-77a8-88ee-20b474534a45#3</guid>
<category>DisplayFusion</category>
<description><![CDATA[Can you re-run the .net desktop runtime here, and then restart DisplayFusion and see if the issue persists? https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/runtime-desktop-8.0.13-windows-x64-installer]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Can you re-run the .net desktop runtime here, and then restart DisplayFusion and see if the issue persists? <a href="https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/runtime-desktop-8.0.13-windows-x64-installer" target="_blank" rel="nofollow"><b>https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/runtime-desktop-8.0.13-windows-x64-installer</b></a>
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Scripted Functions don't work anymore</title>
<link>https://www.displayfusion.com/Discussions/View/scripted-functions-dont-work-anymore/?ID=01951f14-297d-77a8-88ee-20b474534a45#2</link>
<pubDate>Sun, 23 Feb 2025 19:37:43 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/scripted-functions-dont-work-anymore/?ID=01951f14-297d-77a8-88ee-20b474534a45#2</guid>
<category>DisplayFusion</category>
<description><![CDATA[Any feedback on this? Does anybody else have that problem?
Maybe a Microsoft update problem again?
I made some tests today. In February Miccrosoft installed two updates:
KB5050576 and KB5051974.
A system-image from February 2nd works fine. After starting Windows update now these two updates a...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Any feedback on this? Does anybody else have that problem?<br/>
<br/>
Maybe a Microsoft update problem again?<br/>
I made some tests today. In February Miccrosoft installed two updates:<br/>
KB5050576 and KB5051974.<br/>
<br/>
A system-image from February 2nd works fine. After starting Windows update now these two updates are installed:<br/>
KB5049621 & K85049981. It seems that the previous updates have been replaced.<br/>
And the observed issue is gone.
</div>
]]></content:encoded>
</item>
<item>
<title>Scripted Functions don't work anymore</title>
<link>https://www.displayfusion.com/Discussions/View/scripted-functions-dont-work-anymore/?ID=01951f14-297d-77a8-88ee-20b474534a45</link>
<pubDate>Wed, 19 Feb 2025 16:39:30 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/scripted-functions-dont-work-anymore/?ID=01951f14-297d-77a8-88ee-20b474534a45</guid>
<category>DisplayFusion</category>
<description><![CDATA[Hello,
all my scripted functions stopped working on my PC (Windows 10 Pro, 22H2). They still work on my laptop.
If I add a new scripted function, I get this template:
Code
Copy
Select All
using System;
using System.Drawing;
// The 'windowHandle' parameter will contain the window handle fo...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Hello,<br/>
<br/>
all my scripted functions stopped working on my PC (Windows 10 Pro, 22H2). They still work on my laptop.<br/>
If I add a new scripted function, I get this template:<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="#code019e2c3d6f0273d5b30fbfb0652c1860" 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('code019e2c3d6f0273d5b30fbfb0652c1860Js'); 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="code019e2c3d6f0273d5b30fbfb0652c1860Js" 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
//   - Trigger target when run by a Trigger 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)
    {
        // your code goes here
    }
}</pre><textarea id="code019e2c3d6f0273d5b30fbfb0652c1860" name="code019e2c3d6f0273d5b30fbfb0652c1860" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div><br/>
When I click on 'Verify Function' for this template I get this:<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="#code019e2c3d6f0874e8a133fb067595d7b5" 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('code019e2c3d6f0874e8a133fb067595d7b5Js'); 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="code019e2c3d6f0874e8a133fb067595d7b5Js" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%; min-height:75px;">The type or namespace name 'Drawing' does not exist in the namespace 'System' (are you missing an assembly reference?)
Predefined type 'System.Object' is not defined or imported
Predefined type 'System.Object' is not defined or imported
The type or namespace name 'IntPtr' could not be found (are you missing a using directive or an assembly reference?)
Predefined type 'System.Void' is not defined or imported</pre><textarea id="code019e2c3d6f0874e8a133fb067595d7b5" name="code019e2c3d6f0874e8a133fb067595d7b5" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div><br/>
I uninstalled and reinstalled DisplayFusion 11.1.1. No success.<br/>
Am I missing a .net-installation?<br/>
<br/>
Regards,<br/>
Christian
</div>
]]></content:encoded>
</item>
</channel>
</rss>