using System; using System.Drawing; public static class DisplayFusionFunction { public static void Run(IntPtr windowHandle) { string[] windowNames = { "*Notepad*", "*Calculator*", "*Google Chrome*" }; string windowPositionProfile = "Profile Name"; BFS.DisplayFusion.RunFunctionAndWait("Load Window Position Profiles: " + windowPositionProfile); foreach (string name in windowNames) { BFS.Window.Focus(BFS.Window.GetWindowByText(name)); } } }