using System; using System.Drawing; public static class DisplayFusionFunction { public static void Run() { bool isRunning = BFS.Application.IsAppRunningByFile("*Game.exe"); if (isRunning == true) { // Disable the taskbar BFS.DisplayFusion.DisableTaskbar(3); } while (isRunning == true) { isRunning = BFS.Application.IsAppRunningByFile("*Game.exe"); BFS.General.ThreadWait(5000); } if (isRunning != true) { // After the game has exited, enable the taskbar BFS.DisplayFusion.EnableTaskbar(3); } } }