using System; using System.Drawing; public static class DisplayFusionFunction { public static void Run(IntPtr windowHandle) { // Edit the website URLs here string[] websites = { "http:google.com", }; // Open the first website in split 1 IntPtr window1 = BFS.Web.OpenUrlNewWindow(websites[0]); BFS.General.ThreadWait(1000); BFS.Window.MoveToMonitorMaximized(101, window1); BFS.General.ThreadWait(6000); // Open the first Outlook calendar in split 2 uint Outlook1 = BFS.Application.Start("c:\\program files (x86)\\microsoft office\\office15\\outlook.exe", "/select outlook:Kalender"); BFS.General.ThreadWait(10000); windowHandle = BFS.Application.GetMainWindowByAppID(Outlook1); BFS.Window.MoveToMonitorMaximized(102, windowHandle); BFS.General.ThreadWait(6000); // Open the second Outlook calendar in split 3 Outlook1 = BFS.Application.Start("c:\\program files (x86)\\microsoft office\\office15\\outlook.exe", "/select outlook:Kalender"); BFS.General.ThreadWait(4000); windowHandle = BFS.Window.GetWindowByText("*Calendar*Outlook*"); windowHandle = BFS.Application.GetMainWindowByAppID(Outlook1); BFS.Window.MoveToMonitorMaximized(103, windowHandle); } }