using System; using System.Drawing; public static class DisplayFusionFunction { public static void Run() { //Open the first Explorer instance and move it to the left half of monitor 3 BFS.Application.Start("C:\\Windows\\explorer.exe"); BFS.General.ThreadWait(1000); IntPtr windowHandle = BFS.Window.GetFocusedWindow(); BFS.Window.MoveToMonitor(1, windowHandle); BFS.General.ThreadWait(250); BFS.Window.MoveToLeftMonitorHalf(windowHandle); //Open the first Explorer instance and move it to the left half of monitor 3 BFS.Application.Start("C:\\Windows\\explorer.exe", "D:"); BFS.General.ThreadWait(1000); windowHandle = BFS.Window.GetFocusedWindow(); BFS.Window.MoveToMonitor(1, windowHandle); BFS.General.ThreadWait(250); BFS.Window.MoveToRightMonitorHalf(windowHandle); } }
using System; using System.Drawing; public static class DisplayFusionFunction { public static void Run() { //Open the first Explorer instance and move it to the left half of monitor 3 BFS.Application.Start("C:\\Windows\\explorer.exe"); BFS.General.ThreadWait(1000); IntPtr windowHandle = BFS.Window.GetFocusedWindow(); BFS.Window.MoveToMonitor(1, windowHandle); BFS.General.ThreadWait(250); BFS.Window.MoveToLeftMonitorHalf(windowHandle); //Open the first Explorer instance and move it to the left half of monitor 3 BFS.Application.Start("C:\\Windows\\explorer.exe", "D:"); BFS.General.ThreadWait(1000); windowHandle = BFS.Window.GetFocusedWindow(); BFS.Window.MoveToMonitor(1, windowHandle); BFS.General.ThreadWait(250); BFS.Window.MoveToRightMonitorHalf(windowHandle); //Open the first Explorer instance and move it to the left half of monitor 2 (center) BFS.Application.Start("C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe", "/new-window \"https://www.dealabs.com/\""); BFS.General.ThreadWait(1000); IntPtr windowHandle = BFS.Window.GetFocusedWindow(); BFS.Window.MoveToMonitor(2, windowHandle); BFS.General.ThreadWait(250); BFS.Window.MoveToLeftMonitorHalf(windowHandle); //Open the second Explorer instance and move it to the right half of monitor 2 (center) BFS.Application.Start("C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe", "/new-window \"https://www.google.fr/\""); BFS.General.ThreadWait(1000); windowHandle = BFS.Window.GetFocusedWindow(); BFS.Window.MoveToMonitor(2, windowHandle); BFS.General.ThreadWait(250); BFS.Window.MoveToRightMonitorHalf(windowHandle); //Open the first Explorer instance and move it to the left half of monitor 3 (right) BFS.Application.Start("C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe", "/new-window \"https://www.yahoo.fr/\""); BFS.General.ThreadWait(1000); IntPtr windowHandle = BFS.Window.GetFocusedWindow(); BFS.Window.MoveToMonitor(3, windowHandle); BFS.General.ThreadWait(250); BFS.Window.MoveToLeftMonitorHalf(windowHandle); //Open the second Explorer instance and move it to the right half of monitor 3 (right) BFS.Application.Start("C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe", "/new-window \"https://www.duckduckgo.com/\""); BFS.General.ThreadWait(1000); windowHandle = BFS.Window.GetFocusedWindow(); BFS.Window.MoveToMonitor(3, windowHandle); BFS.General.ThreadWait(250); BFS.Window.MoveToRightMonitorHalf(windowHandle); } }