Processing Ajax...

Title

Message

Confirm

Confirm

Confirm

Confirm

Are you sure you want to delete this item?

Confirm

Are you sure you want to delete this item?

Confirm

Are you sure?
If you are experiencing any issues with your desktop wallpaper or taskbar buttons
please download and install the latest DisplayFusion beta version before contacting support.

User Image
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);
}
}
}
22 days ago (modified 22 days ago)  • #1
Owen Muhlethaler (BFS)'s profile on WallpaperFusion.com
That last line should be maximizing the window, you can try adding an extra maximize line though. You might need to add a thread wait so the window gets moved first, like this:

BFS.General.ThreadWait(1000);
BFS.Window.Maximize(window);
21 days ago  • #2
Subscribe to this discussion topic using RSS
Was this helpful?  Login to Vote(-)  Login to Vote(-)