using System;
using System.Drawing;
//Description
//if your running a epic game under steam the will be useful
//just add to a trigger when the game windows you have selected is destroyed.
// this has a 10 sec internal delay for for triggering to sync cloud save before termination.
// add longer delay if needed
public static class DisplayFusionFunction{
public static void Run(IntPtr windowHandle){
//Internal Deley
BFS.General.ThreadWait (10000);
//change this variable with your EpicGamesLauncher.exe path is not default or your on Windows x32
string epicDirectory = @"C:\Program Files (x86)\Epic Games\Launcher\Portal\Binaries\Win64\EpicGamesLauncher.exe";
//Gets EpicGamesLauncher.exe Prosses ID
uint epicID = BFS.Application.GetAppIDByFile (epicDirectory);
//Kills Epic Luncher
if(BFS.Application.IsAppRunningByFile (epicDirectory))
BFS.Application.Kill (epicID);
}
}