Thought I post an update of what I have kinda working >
1) Create 2 Monitor Profiles:
a) Profile A [Single display]
b) Profile B [Dual displays]
2) Create a new custom Scripted Function to close a window (found in other discussions):
a) Scripted Function name = "Close Remote Desktop" >>>
using System;
using System.Drawing;
public static class DisplayFusionFunction
{
public static void Run(IntPtr windowHandle)
{
windowHandle = BFS.Window.GetWindowByText("*Remote Desktop*");
BFS.Window.Close(windowHandle);
}
}
3) Create a new Trigger:
a) Event: " Monitor Profile Changed "
b) Monitor Profile: " Profile A "
c) Run Function: "Close Remote Desktop"
So this actually does WORK, but there is a timing issue.
When Monitor #2 is disconnected, the time it takes DisplayFusion to have Monitor Profile = "Profile A", kick in...
The window moves to Monitor #1, and is displayed there until the Monitor profile kicks in.
Is there a way, or an alternative, to speed this up, or to kill the "Windows Remote Desktop" application faster?
Thanks