<?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: My solution to switch between desk and TV</title>
<atom:link href="https://www.displayfusion.com/Discussions/RSS/?TopicID=018c02d3-d304-74c4-bf21-bfe7d8cd28ce" rel="self" type="application/rss+xml" />
<link>https://www.displayfusion.com/Discussions/RSS/?TopicID=018c02d3-d304-74c4-bf21-bfe7d8cd28ce</link>
<description>DisplayFusion RSS: My solution to switch between desk and TV</description>
<lastBuildDate>Fri, 22 May 2026 23:01:20 GMT</lastBuildDate>
<language>en</language>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<generator>https://www.displayfusion.com/Discussions/RSS/?TopicID=018c02d3-d304-74c4-bf21-bfe7d8cd28ce</generator>
<item>
<title>RE: My solution to switch between desk and TV</title>
<link>https://www.displayfusion.com/Discussions/View/my-solution-to-switch-between-desk-and-tv/?ID=018c02d3-d304-74c4-bf21-bfe7d8cd28ce#3</link>
<pubDate>Sat, 25 Nov 2023 19:19:49 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/my-solution-to-switch-between-desk-and-tv/?ID=018c02d3-d304-74c4-bf21-bfe7d8cd28ce#3</guid>
<category>DisplayFusion</category>
<description><![CDATA[Thank you!  I'll try this out!]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Thank you!  I'll try this out!
</div>
]]></content:encoded>
</item>
<item>
<title>RE: My solution to switch between desk and TV</title>
<link>https://www.displayfusion.com/Discussions/View/my-solution-to-switch-between-desk-and-tv/?ID=018c02d3-d304-74c4-bf21-bfe7d8cd28ce#2</link>
<pubDate>Sat, 25 Nov 2023 13:02:00 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/my-solution-to-switch-between-desk-and-tv/?ID=018c02d3-d304-74c4-bf21-bfe7d8cd28ce#2</guid>
<category>DisplayFusion</category>
<description><![CDATA[If I'm not mistaking your descriptions... this should work as a Scripted Function for DisplayFusion instead of AHK:
Code
Copy
Select All
using System;
public static class DisplayFusionFunction
{
public static void Run(IntPtr windowHandle)
{
int monitorCount = BFS.Monitor.GetMonitorCountE...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
If I'm not mistaking your descriptions... this should work as a Scripted Function for DisplayFusion instead of AHK:<br/>
<div 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="#code019e51ebfbf272818e94b63a162b9b15" class="ClipboardCopyControl"><img src="https://www.displayfusion.com/MediaCommon/SVGs/FontAwesome/clone.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;width:auto;max-width:16px;height:16px;" /><span class="Text">Copy</span></a></div><div class="TableTitleButton"><a href="#" onclick="bfs.util.codeEditorSelectAll('code019e51ebfbf272818e94b63a162b9b15Js'); return false;"><img src="https://www.displayfusion.com/MediaCommon/SVGs/FontAwesome/square-check.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;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="code019e51ebfbf272818e94b63a162b9b15Js" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%; min-height:75px;">using System;
public static class DisplayFusionFunction
{
    public static void Run(IntPtr windowHandle)
    {
        int monitorCount = BFS.Monitor.GetMonitorCountEnabled();

        if (monitorCount &lt;= 1)  // One monitor (or less?)
        {
            BFS.DisplayFusion.LoadMonitorProfile("Named profile 1");
        }
        else    // More than one monitor
        {
            BFS.DisplayFusion.LoadMonitorProfile("Named profile 2");
        }
    }
}</pre><textarea id="code019e51ebfbf272818e94b63a162b9b15" name="code019e51ebfbf272818e94b63a162b9b15" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div><br/>
<br/>
Then you just give the Scripted Function a hotkey to trigger it.  The Shift-Ctrl-Alt R/T shouldn't be necessary, but you can always keep them for manual control.<br/>
<br/>
In the Triggers section, you may also have the Scripted Function run when Display Fusion starts or the Desktop Unlocks.  (or both)
</div>
]]></content:encoded>
</item>
<item>
<title>My solution to switch between desk and TV</title>
<link>https://www.displayfusion.com/Discussions/View/my-solution-to-switch-between-desk-and-tv/?ID=018c02d3-d304-74c4-bf21-bfe7d8cd28ce</link>
<pubDate>Fri, 24 Nov 2023 19:34:46 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/my-solution-to-switch-between-desk-and-tv/?ID=018c02d3-d304-74c4-bf21-bfe7d8cd28ce</guid>
<category>DisplayFusion</category>
<description><![CDATA[I originally posted my solution for swapping between my desk (dual monitors) and couch (TV) on Reddit, but once I saw a forum here I thought it made sense to post on this site as well because so many solutions failed for me.  I was originally planning to use multiple tools to achieve this, but Di...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
I originally posted my solution for swapping between my desk (dual monitors) and couch (TV) on Reddit, but once I saw a forum here I thought it made sense to post on this site as well because so many solutions failed for me.  I was originally planning to use multiple tools to achieve this, but DisplayFusion ended up handling things nicely.  I'm assuming the AutoHotKey portion of the post can be done with C in DispalyFusion, but for now this is working fine and I'm less comfortable with C#.<br/>
<br/>
Original text is below.<br/>
<br/>
___<br/>
<br/>
I've recently worked on moving my computer to the living room area so that gaming is feasible either via my TV (couch) or desk. My goal was to find something that could make the switch between TV and desk with a keyboard shortcut.  The final produced needed to include a means to switch audio too. Below is the solution that eventually worked where others failed.<br/>
<br/>
Several solutions found on the internet did not seem to work for me for one reason or another (two Nirsoft applications, one other monitor switching application, command line options for Windows, Keyboard shortcuts built into windows).<br/>
<br/>
For a few weeks, I was just turning off my monitors and manually changing the audio profile because those solutions failed. Today, I tried DisplayFusion with pretty good success. <br/>
<br/>
<b>Requirements:</b><br/>
<br/>
    AutoHotKey - <a href="https://www.autohotkey.com/" target="_blank" rel="nofollow"><b>https://www.autohotkey.com/</b></a> - This is used to write a keyboard short that determines how many monitors are connected to the computer and uses that information to determine which monitor profile needs to load.<br/>
<br/>
    DisplayFusion Pro - <a href="https://www.displayfusion.com/" target="_blank" rel="nofollow"><b>https://www.displayfusion.com/</b></a> - This is used to store monitor/audio configuration into profiles that can be loaded with keyboard shortcuts.<br/>
<br/>
<b>Rough Outline of steps:</b><br/>
<br/>
<ul class="ListBullet">Download and install the software, AuotHotKey and Display Fusion.<br/>
<br/>
    Once installed, right click on the Display Fusion icon by the system clock, and choose monitor configuration.<br/>
<br/>
    Configure the desired monitor profiles and save them.<br/>
<br/>
    To bind audio devices, go to Manage Monitor Profiles (in the Monitor Configuration window).<br/>
<br/>
    Select the desired audio settings per profile and configure key combination (the AutoHotKey script below uses Shift + Alt + Ctrl + R and Shift + Alt + Ctrl + T).<br/>
<br/>
    Close the Display Fusion windows and open Notepad.<br/>
<br/>
    Copy the AutoHotKey Code snippet below to Notepad and save the file.<br/>
<br/>
    Double click on the file. It should show up in the task bar by the clock.<br/>
<br/>
    Test the switching.</ul>
<br/>
If you want the AutoHotKey file to start with windows, I used the information at this article under the 'Add shortcut to startup folder' heading. <a href="https://www.howtogeek.com/364263/how-to-open-windows-store-apps-on-startup-in-windows-10/" target="_blank" rel="nofollow"><b>https://www.howtogeek.com/364263/how-to-open-windows-store-apps-on-startup-in-windows-10/</b></a>. Personally I put the AutoHotKey notepad file in a safe place, created a shortcut (right click &gt; create shortcut), then copied the shortcut to the shell:Startup location.<br/>
<br/>
<b>AutoHotKey Code</b> - This can be modified to be something that is more suitable for you. This script is what works for me. Other options could be something like using the monitor name or resolution. Some helpful information can be found here. <a href="https://www.autohotkey.com/docs/v1/lib/SysGet.htm" target="_blank" rel="nofollow"><b>https://www.autohotkey.com/docs/v1/lib/SysGet.htm</b></a><br/>
<br/>
<div 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="#code019e51ebfbfb70b7a417bd3b71625bbf" class="ClipboardCopyControl"><img src="https://www.displayfusion.com/MediaCommon/SVGs/FontAwesome/clone.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;width:auto;max-width:16px;height:16px;" /><span class="Text">Copy</span></a></div><div class="TableTitleButton"><a href="#" onclick="bfs.util.codeEditorSelectAll('code019e51ebfbfb70b7a417bd3b71625bbfJs'); return false;"><img src="https://www.displayfusion.com/MediaCommon/SVGs/FontAwesome/square-check.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;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="code019e51ebfbfb70b7a417bd3b71625bbfJs" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%; min-height:75px;">!t:: ;Alt+T triggers the the switch..

SysGet, MonitorCount, MonitorCount ; Counts monitors

if ( MonitorCount = 1)

{

    Send +!\^R ; Sends the keyboard shortcut for the couch gaming profile

}

If ( MonitorCount &gt; 1)

{

    Send +!\^Ts ; Sends the keyboard shortcut for the desk profile. 

}</pre><textarea id="code019e51ebfbfb70b7a417bd3b71625bbf" name="code019e51ebfbfb70b7a417bd3b71625bbf" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div>
</div>
]]></content:encoded>
</item>
</channel>
</rss>