<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/">
<channel>
<title>DisplayFusion RSS: GetCurrentMonitorProfile() only detects first monitor profile and no others</title>
<atom:link href="https://www.displayfusion.com/Discussions/RSS/?TopicID=018bd99c-0394-70e6-a469-8c9e761dbf02" rel="self" type="application/rss+xml" />
<link>https://www.displayfusion.com/Discussions/RSS/?TopicID=018bd99c-0394-70e6-a469-8c9e761dbf02</link>
<description>DisplayFusion RSS: GetCurrentMonitorProfile() only detects first monitor profile and no others</description>
<lastBuildDate>Fri, 22 May 2026 23:07:12 GMT</lastBuildDate>
<language>en</language>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<generator>https://www.displayfusion.com/Discussions/RSS/?TopicID=018bd99c-0394-70e6-a469-8c9e761dbf02</generator>
<item>
<title>RE: GetCurrentMonitorProfile() only detects first monitor profile and no others</title>
<link>https://www.displayfusion.com/Discussions/View/getcurrentmonitorprofile-only-detects-first-monitor-profile-and-no-others/?ID=018bd99c-0394-70e6-a469-8c9e761dbf02#3</link>
<pubDate>Fri, 17 Nov 2023 20:40:40 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/getcurrentmonitorprofile-only-detects-first-monitor-profile-and-no-others/?ID=018bd99c-0394-70e6-a469-8c9e761dbf02#3</guid>
<category>DisplayFusion</category>
<description><![CDATA[That was the problem. It was not detecting the monitor profile even after loading it.  I had to load the profile and then save it. I think I loaded it again and after that it finally starting showing up as detected. For other profiles I will just try to save it again.]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
That was the problem. It was not detecting the monitor profile even after loading it.  I had to load the profile and then save it. I think I loaded it again and after that it finally starting showing up as detected. For other profiles I will just try to save it again.
</div>
]]></content:encoded>
</item>
<item>
<title>RE: GetCurrentMonitorProfile() only detects first monitor profile and no others</title>
<link>https://www.displayfusion.com/Discussions/View/getcurrentmonitorprofile-only-detects-first-monitor-profile-and-no-others/?ID=018bd99c-0394-70e6-a469-8c9e761dbf02#2</link>
<pubDate>Fri, 17 Nov 2023 15:41:23 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/getcurrentmonitorprofile-only-detects-first-monitor-profile-and-no-others/?ID=018bd99c-0394-70e6-a469-8c9e761dbf02#2</guid>
<category>DisplayFusion</category>
<description><![CDATA[If you open the Monitor Configuration window when you have one of the other profiles loaded, do they show they are loaded correctly in the "Detected Profile:" box in the top left of that window?]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
If you open the Monitor Configuration window when you have one of the other profiles loaded, do they show they are loaded correctly in the "Detected Profile:" box in the top left of that window?
</div>
]]></content:encoded>
</item>
<item>
<title>GetCurrentMonitorProfile() only detects first monitor profile and no others</title>
<link>https://www.displayfusion.com/Discussions/View/getcurrentmonitorprofile-only-detects-first-monitor-profile-and-no-others/?ID=018bd99c-0394-70e6-a469-8c9e761dbf02</link>
<pubDate>Thu, 16 Nov 2023 19:29:22 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/getcurrentmonitorprofile-only-detects-first-monitor-profile-and-no-others/?ID=018bd99c-0394-70e6-a469-8c9e761dbf02</guid>
<category>DisplayFusion</category>
<description><![CDATA[I am trying to build a hotscript (ctrl-alt-x) that runs a function to move a window to my left monitor. However, I have different monitors when at work and when at home. I created multiple monitor profiles to handle this and want the move coordinates modified depending on which monitor is selecte...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
I am trying to build a hotscript (ctrl-alt-x) that runs a function to move a window to my left monitor. However, I have different monitors when at work and when at home. I created multiple monitor profiles to handle this and want the move coordinates modified depending on which monitor is selected. However the GetCurrentMonitorProfile() function only returns a value if the first monitor function is selected.  To verify this is happening in my function I added a "BFS.Dialog.ShowMessageError(BFS.DisplayFusion.GetCurrentMonitorProfile());" to my script to show me which monitor profile is selected. If I pick the first monitor profile, run the function, the dialog box shows the name of the selected first monitor profile. If I pick any other monitor profile then the dialog box is empty. This is causing the if else statement to fail to trigger. I am running Display Fusion 11.2 on Windows 11.  I have tried renaming the monitor profiles, but that does not seem to matter. I am not even sure if it is just the first one that works but in my case only that one works. <br/>
<br/>
The monitor profiles I have are<br/>
HOME (Center Monitor Center)  This one works<br/>
HOME (Center Monitor Low)   Not work if selected<br/>
Laptop + Portable Monitor (Left)     Not work if selected<br/>
Laptop + Portable Monitor (Right)     Not work if selected<br/>
WORK3     Not work if selected<br/>
<br/>
<div class="Inline"><pre>using System;
using System.Drawing;

public static class DisplayFusionFunction
{
    public static void Run(IntPtr windowHandle)
    {
        BFS.Dialog.ShowMessageError(BFS.DisplayFusion.GetCurrentMonitorProfile());
        if (BFS.DisplayFusion.GetCurrentMonitorProfile() == "HOME (Center Monitor Center)")
        {
            BFS.Window.SetSize(windowHandle, 2160, 2100);
            BFS.Window.SetLocation(windowHandle, -2160, 0);
        }
        else if (BFS.DisplayFusion.GetCurrentMonitorProfile() == "WORK 3")
        {
            BFS.Window.SetSize(windowHandle, 1440, 1572);
            BFS.Window.SetLocation(windowHandle, -1440, 1572);
        }    
    }
}</pre></div><br/>
<br/>
Any ideas what is going on?
</div>
]]></content:encoded>
</item>
</channel>
</rss>