<?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: How to enable custom Functions with 2 monitors and disable them with only one monitor</title>
<atom:link href="https://www.displayfusion.com/Discussions/RSS/?TopicID=2a4a0fb7-a2bb-4f28-800f-bc2eb06acb40" rel="self" type="application/rss+xml" />
<link>https://www.displayfusion.com/Discussions/RSS/?TopicID=2a4a0fb7-a2bb-4f28-800f-bc2eb06acb40</link>
<description>DisplayFusion RSS: How to enable custom Functions with 2 monitors and disable them with only one monitor</description>
<lastBuildDate>Sun, 19 Apr 2026 13:47:36 GMT</lastBuildDate>
<language>en</language>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<generator>https://www.displayfusion.com/Discussions/RSS/?TopicID=2a4a0fb7-a2bb-4f28-800f-bc2eb06acb40</generator>
<item>
<title>RE: How to enable custom Functions with 2 monitors and disable them with only one monitor</title>
<link>https://www.displayfusion.com/Discussions/View/how-to-enable-custom-functions-with-2-monitors-and-disable-them-with-only-one-monitor/?ID=2a4a0fb7-a2bb-4f28-800f-bc2eb06acb40#4</link>
<pubDate>Wed, 16 Oct 2019 16:18:55 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/how-to-enable-custom-functions-with-2-monitors-and-disable-them-with-only-one-monitor/?ID=2a4a0fb7-a2bb-4f28-800f-bc2eb06acb40#4</guid>
<category>DisplayFusion</category>
<description><![CDATA[It's not possible to toggle specific ones, but I've uploaded a Scripted Function to the repository that will toggle the TitleBar Buttons feature depending on the number of connected monitors:
https://www.displayfusion.com/ScriptedFunctions/View/?ID=4b9a1683-46b6-4b9d-85a9-2e0c0d4f544b
Hope that...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
It's not possible to toggle specific ones, but I've uploaded a Scripted Function to the repository that will toggle the TitleBar Buttons feature depending on the number of connected monitors:<br/>
<br/>
<a href="https://www.displayfusion.com/ScriptedFunctions/View/?ID=4b9a1683-46b6-4b9d-85a9-2e0c0d4f544b" target="_blank" rel="nofollow"><b>https://www.displayfusion.com/ScriptedFunctions/View/?ID=4b9a1683-46b6-4b9d-85a9-2e0c0d4f544b</b></a><br/>
<br/>
Hope that helps!
</div>
]]></content:encoded>
</item>
<item>
<title>RE: How to enable custom Functions with 2 monitors and disable them with only one monitor</title>
<link>https://www.displayfusion.com/Discussions/View/how-to-enable-custom-functions-with-2-monitors-and-disable-them-with-only-one-monitor/?ID=2a4a0fb7-a2bb-4f28-800f-bc2eb06acb40#3</link>
<pubDate>Tue, 15 Oct 2019 18:11:00 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/how-to-enable-custom-functions-with-2-monitors-and-disable-them-with-only-one-monitor/?ID=2a4a0fb7-a2bb-4f28-800f-bc2eb06acb40#3</guid>
<category>DisplayFusion</category>
<description><![CDATA[I mean if I can enable/disable specific it would be nice but I'll also be happy with doing all.]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
I mean if I can enable/disable specific it would be nice but I'll also be happy with doing all.
</div>
]]></content:encoded>
</item>
<item>
<title>RE: How to enable custom Functions with 2 monitors and disable them with only one monitor</title>
<link>https://www.displayfusion.com/Discussions/View/how-to-enable-custom-functions-with-2-monitors-and-disable-them-with-only-one-monitor/?ID=2a4a0fb7-a2bb-4f28-800f-bc2eb06acb40#2</link>
<pubDate>Tue, 15 Oct 2019 17:48:33 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/how-to-enable-custom-functions-with-2-monitors-and-disable-them-with-only-one-monitor/?ID=2a4a0fb7-a2bb-4f28-800f-bc2eb06acb40#2</guid>
<category>DisplayFusion</category>
<description><![CDATA[Are you wanting to enable/disable specific titlebar buttons, or enable/disable all titlebar buttons?]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Are you wanting to enable/disable specific titlebar buttons, or enable/disable all titlebar buttons?
</div>
]]></content:encoded>
</item>
<item>
<title>How to enable custom Functions with 2 monitors and disable them with only one monitor</title>
<link>https://www.displayfusion.com/Discussions/View/how-to-enable-custom-functions-with-2-monitors-and-disable-them-with-only-one-monitor/?ID=2a4a0fb7-a2bb-4f28-800f-bc2eb06acb40</link>
<pubDate>Sat, 12 Oct 2019 21:50:31 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/how-to-enable-custom-functions-with-2-monitors-and-disable-them-with-only-one-monitor/?ID=2a4a0fb7-a2bb-4f28-800f-bc2eb06acb40</guid>
<category>DisplayFusion</category>
<description><![CDATA[So I'm got a work setup where I ame working in the office with 2 monitors and on site with one.
I use quite a few TitleBar Buttons and would like to enable/disable them depending on how many monitors I have set up.
Code
Copy
Select All
using System;
using System.Drawing;
public static clas...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
So I'm got a work setup where I ame working in the office with 2 monitors and on site with one.<br/>
I use quite a few TitleBar Buttons and would like to enable/disable them depending on how many monitors I have set up.<br/>
<br/>
<div id="" class="col-md-12 BoxWrap"><div class="Box table-responsive"><a name="code" style="width:0; height:0;"></a><h2 class="TableTitle" style="border:0"><div class="TableTitleText">Code</div><div class="TitleButtons"><div class="TableTitleButton"><a href="#" onclick="return false;" data-clipboard-target="#code019da5ff2ac9776ab9598669f8506ecb" class="ClipboardCopyControl"><img src="https://www.displayfusion.com/MediaCommon/SVGs/FontAwesome/clone.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;vertical-align:middle !important;width:auto;max-width:16px;height:16px;" /><span class="Text">Copy</span></a></div><div class="TableTitleButton"><a href="#" onclick="bfs.util.codeEditorSelectAll('code019da5ff2ac9776ab9598669f8506ecbJs'); return false;"><img src="https://www.displayfusion.com/MediaCommon/SVGs/FontAwesome/square-check.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;vertical-align:middle !important;width:auto;max-width:16px;height:16px;" /><span class="Text">Select All</span></a></div></div></h2><div class="TableTitleContent table-responsive"><div class="AceEditorWrapper" style="border-top:solid 1px var(--color-default-border);padding:0"><pre id="code019da5ff2ac9776ab9598669f8506ecbJs" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%; min-height:75px;">using System;
using System.Drawing;

public static class DisplayFusionFunction
{
    public static void Run(IntPtr windowHandle)
    {
       
        // Gets the number of monitors and if it equals 2, loads the monitor profile    
        int numberOfMonitors = BFS.Monitor.GetMonitorCountEnabledAndDisabled();        
        if (numberOfMonitors == 2)
        {</pre><textarea id="code019da5ff2ac9776ab9598669f8506ecb" name="code019da5ff2ac9776ab9598669f8506ecb" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div><br/>
           and then it would enable/disable the titelbar button?<br/>
           <br/>
           hope somebody could help me
</div>
]]></content:encoded>
</item>
</channel>
</rss>