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?

User Image
Christian Treffler
61 discussion posts
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

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
    }
}

When I click on 'Verify Function' for this template I get this:

Code

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

I uninstalled and reinstalled DisplayFusion 11.1.1. No success.
Am I missing a .net-installation?

Regards,
Christian
8 days ago (modified 8 days ago)  • #1
User Image
Christian Treffler
61 discussion posts
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 are installed:
KB5049621 & K85049981. It seems that the previous updates have been replaced.
And the observed issue is gone.
4 days ago  • #2
Owen Muhlethaler (BFS)'s profile on WallpaperFusion.com
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
3 days ago  • #3
User Image
Christian Treffler
61 discussion posts
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)'.
The '8.0.5 (x64)'-version was still there, but it seems that DisplayFusion could not use it anymore.

I installed the 'Microsoft Windows Desktop Runtime - 8.0.13 (x64)' which you recommended and now DisplayFusion works again.
The x86 and x64 runtime are now installed side-by-side because the Brother utility needs the x86-version.
3 days ago  • #4
Subscribe to this discussion topic using RSS
Was this helpful?  Login to Vote(1)  Login to Vote(-)