
Chris595
3 discussion posts
I have each web link that loading up on it's own grid that is assigned. How do I get it to maximize without having to do it manually?
Example:
using System;
using System.Drawing;
public static class DisplayFusionFunction
{
public static void Run(IntPtr windowHandle)
{
// Cjharris 03.12.2026
// Set the websites and their target monitor IDs here
string[,] websites = {
{ "https://", "101" },
{ "hhttps://", "102" },
{ "https://", "103" },
{ "https://", "104" },
{ "https://www.foxla.com/live", "201" },
{ "https://www.youtube.com/", "202" },
{ "https://", "203" },
{ "https://", "204" },
{ "https://", "501" },
{ "https://", "502" },
{ "https://", "503" },
{ "https://", "504" },
{ "https://", "505" },
{ "https://", "506" },
{ "https://", "3" },
{ "https://n", "4" }
};
// 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);
}
}
}
15 hours ago (modified 15 hours ago)
•
#1