Processing Ajax...

Title
Close Dialog

Message

Confirm
Close Dialog

Confirm
Close Dialog

Confirm
Close Dialog

User Image
Peter Kronenberg37117
88 discussion posts
I'm running version 10.0 (Beta 13). At some point in the last few releases (including Beta), my Close Mirror script has stopped working. Here is my script

using System;
using System.Drawing;
public static class DisplayFusionFunction{
public static void Run(IntPtr windowHandle) {
IntPtr mirrorWindow = BFS.Window.GetWindowByText("Mirror Selected Area*");
BFS.Window.Close(mirrorWindow);
}
}

Attached is a screenshot of how I have it defined.

It worked fine for months, but now, if I press Alt-Ctrl-C, I get the message that says Running Close Mirror, but it doesn't actually close it
• Attachment: 2022-03-17 11_47_15-.png [5,811 bytes]
2022-03-17 11_47_15-.png
2022-03-17 11_47_15-.png
• Attachment: 2022-03-17 11_49_34-.png [39,170 bytes]
2022-03-17 11_49_34-.png
2022-03-17 11_49_34-.png
Mar 17, 2022  • #1
Keith Lammers (BFS)'s profile on WallpaperFusion.com
It looks like the window text for those windows has changed for some reason, they no longer include the "Mirror Selected Area" text. I've put this on our list to fix up :)

Thanks!
Mar 17, 2022  • #2
User Image
Peter Kronenberg37117
88 discussion posts
Quote:
It looks like the window text for those windows has changed for some reason, they no longer include the "Mirror Selected Area" text. I've put this on our list to fix up :)

Thanks!


Is there any workaround?
Mar 18, 2022  • #3
User Image
Peter Kronenberg37117
88 discussion posts
Anything on this?
Mar 22, 2022  • #4
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Sorry for the delayed response, I had a go at this yesterday and came up empty handed, but had a look again just now and came up with a workaround.

Try changing:
IntPtr mirrorWindow = BFS.Window.GetWindowByText("Mirror Selected Area*");


To:
IntPtr mirrorWindow = BFS.Window.GetWindowByText("*x*->*x*");
Mar 23, 2022  • #5
User Image
Peter Kronenberg37117
88 discussion posts
Thanks. That seems to work for Close Mirror. I also have a trigger when the mirror is created to move it to a specific monitor and make it full-screen. That one doesn't seem to work even with the same text
2022-03-24 09_02_27-Edit Trigger _ DisplayFusion Pro 10.0 (Beta 13).png
2022-03-24 09_02_27-Edit Trigger _ DisplayFusion Pro 10.0 (Beta 13).png
Mar 24, 2022  • #6
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Ah yeah, wildcards don't work in Triggers because it uses our text query engine, not a pattern match. You should be able to use this in the Trigger rule though:

x +"->" +x
Mar 24, 2022  • #7
Owen Muhlethaler (BFS)'s profile on WallpaperFusion.com
This issue should be fixed up in the latest beta, available here: https://www.displayfusion.com/Download/Beta. Please let me know if you still run into any trouble after updating.

Thanks!
Mar 30, 2022  • #8
Subscribe to this discussion topic using RSS
Was this helpful?  Login to Vote(-)  Login to Vote(-)