----
using System;
using System.Collections.Generic;
using System.Drawing;
using System.IO;
public static class DisplayFusionFunction
{
public static void Run(IntPtr windowHandle)
{
//Put the number of screens you have here V excluding your tv.
if (BFS.Monitor.GetMonitorIDs().Length > 1)
{
//Put the name of your profile that doesnt include your TV where "Bed" is
BFS.DisplayFusion.LoadMonitorProfile("Dual Monitor");
}
else
{
//put the name of the profile including your extra TV where "Desk" is
BFS.DisplayFusion.LoadMonitorProfile("Main + TV");
IntPtr[] handles = BFS.Window.GetVisibleWindowHandles();
BFS.General.Sleep(100);
for (int i = 0; i < handles.Length; i++)
//Because the forum is being dumb, replace the {} at the end of the below line with []
BFS.Window.MoveToMonitor(2, handles{i});
}
}
}
-----------
It doesn't seem to work, or I didn't do it right. Any idea on what I did wrong?
I did replace {i} with brackets as well. I'm not familiar with scripting.