using System;
using System.Drawing;
public static class DisplayFusionFunction
{
public static void Run(IntPtr windowHandle)
{
// Set the websites and their target monitor IDs here
string[, ] websites =
{
{
"https://www.google.com", "1"
},
{
"https://www.tradingview.com", "3"
},
{
"https://www.tradingview.com", "4"
},
{
"https://www.tradingview.com", "5"
},
{
"https://www.tradingview.com", "6"
},
{
"https://www.tradingview.com/chart", "7"
},
{
"https://www.tradingview.com/chart", "8"
},
{
"https://www.tradingview.com/chart", "9"
}
};
// Open the websites and move them to their target monitors
for (int i = 0; i < websites.GetLength(0); i++)
{
IntPtr window = BFS.Web.OpenUrlNewWindow(websites[i, 0]);
uint monitorID = Convert.ToUInt32(websites[i, 1]);
BFS.Window.MoveToMonitorMaximized(monitorID, window);
}
// Open the websites for monitor 2
IntPtr window2 = BFS.Web.OpenUrlNewWindow("https://elite.finviz.com");
BFS.Window.MoveToMonitorMaximized(2, window2);
BFS.DisplayFusion.RunFunctionWithWindowHandle("Size and Move Window to Left Side of Monitor", window2);
window2 = BFS.Web.OpenUrlNewWindow("https://www.stocktitan.net");
BFS.Window.MoveToMonitorMaximized(2, window2);
BFS.DisplayFusion.RunFunctionWithWindowHandle("Size and Move Window to Right Side of Monitor", window2);
}
}