using System;
using System.Drawing;
public static class DisplayFusionFunction
{
public static void Run(IntPtr windowHandle)
{
// Try to get the window
IntPtr window = BFS.Window.GetWindowByText("windowtitlehere");
// Check if the window exists
if (window == IntPtr.Zero)
{
// If it doesn't exist, launch it
// Insert code to launch the app here
}
else
{
// If it does exist, focus it
BFS.Window.Focus(window);
}
}
}