using System; using System.Drawing; public static class DisplayFusionFunction { public static void Run(IntPtr windowHandle) { // Disable the taskbars BFS.DisplayFusion.DisableAllTaskbars(); // Wait 1 second BFS.General.ThreadWait(1000); // Launch the game uint appID = BFS.Application.Start(@"D:\Games\!Steam\SteamApps\common\The Witcher 3\bin\x64\witcher3.exe"); // Wait for the game to exit BFS.Application.WaitForExitByAppID(appID); // Enable the taskbar BFS.DisplayFusion.EnableAllTaskbars(); } }