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?
If you are experiencing any issues with your desktop wallpaper or taskbar buttons
please download and install the latest DisplayFusion beta version before contacting support.

User Image
Leonardo Leal20076
5 discussion posts
Hi Friends.

I have a simple function that whenever it's executed, my notification tray shows a DisplayFusion Icon for It, just as If It has hanged or something. What could be the cause?

I tried many different triggers to call It or even just call It woth Hotkey. Results are always the same.

IMPORTANT INFO: The function does actually work, but The notification icon is just hanging there.... forever... I'm not sure this is causing resources to be consumed.

Here's the function:

using System;
using System.Drawing;

public static class DisplayFusionFunction {
    public static void Run(IntPtr windowHandle) { 
        if (BFS.Taskbar.IsWindowsTaskbarAutoHideEnabled())
            BFS.Taskbar.SetWindowsTaskbarAutoHide(false);
    }
}


Is there really anything suspicious about this function?
6 days ago  • #1
Owen Muhlethaler (BFS)'s profile on WallpaperFusion.com
Does this happen with any function you run or just that one?
5 days ago  • #2
User Image
Leonardo Leal20076
5 discussion posts
Quote:
Does this happen with any function you run or just that one?


That's the Weird part... This is the only one that gets stuck in the tray like this.

Here is the complete scenario:

I have another function that works in tandem with this one.

Script 1:
- Removes the window border;
- Maximizes It to the center area of my Virtual Monitor;
- Enabled Taskbar Auto-Hide;
Triggers:
- Window Created - Target: Windows with specific Text (Usually the game's name);
OBS: I have a few games that do not support UltraWide aspect ratio. For these games I add this trigger to center them in my screen with proper aspect ratio and resoltution of 2560x1440.

Script 2 (This one that's getting stuck):
- Disables Taskbar Auto-hide IF ENABLED
Triggers:
- Window Focus - Target: Same as Script one, but on negative check (window names prefixed by "-") AND
- Window Destroyed - Target: Game window (same target as script 1)
OBS: When I focus any window that is not the game, the taskbar auto-hide is disabled if It was enabled (the if clause is to prevent executing the call in case the focus went from one window that is not the game to another window that is not the game). WHen I close the game (window destroyed) this function also runs to restore the taskbar as if no other window was opened, the auto-hide would remain enabled.

Script 3:
- Enables Taskbar Auto-Hide
Trigger:
- Focus on the game window (same filter match on window text)
OBS: When I focus the "chromeless" game window, the taskbar auto-hides again.

Info 1: None of the scripts 1 or 3 get stuck in the system tray. Only Script 2.
Info 2: All the scripts stop triggers when matched (checkbox on the trigger). So It never runs 2 Triggers per event.
Info 3: This script the only one with the negated window text trigger. Also, when I run It through a Hotkey, the script doesnt get stuck.

Here's the exact trigger:

Window Text: -"Steam Big Picture Mode" -"SHINOBI_AOV" -"World of Warcraft"
5 days ago (modified 5 days ago)  • #3
User Image
Leonardo Leal20076
5 discussion posts
I have identified a series of Window classes that are considered windows by the triggers but they are really just UI elements and ghost/transient/ephemeral UI elements in Windows 11. I created a exclusion list of those.

-("Shell_TrayWnd" "Shell_SecondaryTrayWnd" "TopLevelWindowForOverflowXamlIsland" "Windows.UI.Core.CoreWindow" "tooltips_class32" "XamlExplorerHostIslandWindow" "#32768" "Shell_InputSwitchTopLevelWindow" "ScreenClippingWindow" "Progman" "WorkerW" "MultitaskingViewFrame" "SysShadow" "Ghost" "ApplicationFrameWindow" "CiceroUIWndFrame" "Windows.Widgets" "SearchPane" "TaskSwitcherWnd")

Now the function doesnt hang anymore. I dont know if I over did It, but so far the scripts are working perfectly now.
5 days ago  • #4
User Image
Leonardo Leal20076
5 discussion posts
It would be really nice If there would be a way to debug which event triggered the execution that got stuck. One event triggered It for me now, and I dont know what triggered It. I was just reading now and It triggered. :/
5 days ago  • #5
Owen Muhlethaler (BFS)'s profile on WallpaperFusion.com
We'll add that to our feature request list and let you know if it's something we add in the future.

Thanks!
3 days ago  • #6
Subscribe to this discussion topic using RSS
Was this helpful?  Login to Vote(-)  Login to Vote(-)