<?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: Trigger for Steam Big Picture using custom function not working</title>
<atom:link href="https://www.displayfusion.com/Discussions/RSS/?TopicID=fea3896d-3672-407d-af8f-871f3b25fa18" rel="self" type="application/rss+xml" />
<link>https://www.displayfusion.com/Discussions/RSS/?TopicID=fea3896d-3672-407d-af8f-871f3b25fa18</link>
<description>DisplayFusion RSS: Trigger for Steam Big Picture using custom function not working</description>
<lastBuildDate>Tue, 26 May 2026 04:05:02 GMT</lastBuildDate>
<language>en</language>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<generator>https://www.displayfusion.com/Discussions/RSS/?TopicID=fea3896d-3672-407d-af8f-871f3b25fa18</generator>
<item>
<title>RE: Trigger for Steam Big Picture using custom function not working</title>
<link>https://www.displayfusion.com/Discussions/View/trigger-for-steam-big-picture-using-custom-function-not-working/?ID=fea3896d-3672-407d-af8f-871f3b25fa18#4</link>
<pubDate>Tue, 31 Jan 2017 20:35:38 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/trigger-for-steam-big-picture-using-custom-function-not-working/?ID=fea3896d-3672-407d-af8f-871f3b25fa18#4</guid>
<category>DisplayFusion</category>
<description><![CDATA[Ah! It might be an issue with this line:
string steamDirectory = @"C:\\Program Files (x86)\\Steam\\Steam.exe";
Can you try changing it to either this:
string steamDirectory = "C:\\Program Files (x86)\\Steam\\Steam.exe";
or this:
string steamDirectory = @"C:\Program Files (x86)\Steam\Steam.exe";]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Ah! It might be an issue with this line:<br/>
<br/>
string steamDirectory = @"C:\\Program Files (x86)\\Steam\\Steam.exe";<br/>
<br/>
Can you try changing it to either this:<br/>
<br/>
string steamDirectory = "C:\\Program Files (x86)\\Steam\\Steam.exe";<br/>
<br/>
or this:<br/>
<br/>
string steamDirectory = @"C:\Program Files (x86)\Steam\Steam.exe";
</div>
]]></content:encoded>
<media:thumbnail url="https://www.displayfusion.com/Discussions/Download/?ID=2d5f1f7e-7a4a-41e7-bb88-5f23cf874195"/>
</item>
<item>
<title>RE: Trigger for Steam Big Picture using custom function not working</title>
<link>https://www.displayfusion.com/Discussions/View/trigger-for-steam-big-picture-using-custom-function-not-working/?ID=fea3896d-3672-407d-af8f-871f3b25fa18#3</link>
<pubDate>Sun, 29 Jan 2017 19:40:15 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/trigger-for-steam-big-picture-using-custom-function-not-working/?ID=fea3896d-3672-407d-af8f-871f3b25fa18#3</guid>
<category>DisplayFusion</category>
<description><![CDATA[Hi Keith, actually no it isn't, I thought it was referring to my steam profile, that was an error.
So I've changed it to be the monitor profile which is simply called "Standard Profile". However the end result is still the same, I get a success message from Display Fusion telling me the "Steam B...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Hi Keith, actually no it isn't, I thought it was referring to my steam profile, that was an error. <br/>
<br/>
So I've changed it to be the monitor profile which is simply called "Standard Profile". However the end result is still the same, I get a success message from Display Fusion telling me the "Steam Big Picture Gaming" profile has loaded but Steam just sits there on the same monitor, nothing further happens.
</div>
]]></content:encoded>
<media:thumbnail url="https://www.displayfusion.com/Discussions/Download/?ID=2d5f1f7e-7a4a-41e7-bb88-5f23cf874195"/>
</item>
<item>
<title>RE: Trigger for Steam Big Picture using custom function not working</title>
<link>https://www.displayfusion.com/Discussions/View/trigger-for-steam-big-picture-using-custom-function-not-working/?ID=fea3896d-3672-407d-af8f-871f3b25fa18#2</link>
<pubDate>Wed, 18 Jan 2017 17:19:26 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/trigger-for-steam-big-picture-using-custom-function-not-working/?ID=fea3896d-3672-407d-af8f-871f3b25fa18#2</guid>
<category>DisplayFusion</category>
<description><![CDATA[I noticed this line in your script:
Code
Copy
Select All
if(currentProfileName == "randomspam")
Is "randomspam" the name of the Monitor Profile you're on before you run that Scripted Function?]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
I noticed this line in your script:<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="#code019e62751c7276eda10ed466174208d0" 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('code019e62751c7276eda10ed466174208d0Js'); 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="code019e62751c7276eda10ed466174208d0Js" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%; min-height:75px;">if(currentProfileName == "randomspam")</pre><textarea id="code019e62751c7276eda10ed466174208d0" name="code019e62751c7276eda10ed466174208d0" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div><br/>
<br/>
Is "randomspam" the name of the Monitor Profile you're on before you run that Scripted Function?
</div>
]]></content:encoded>
<media:thumbnail url="https://www.displayfusion.com/Discussions/Download/?ID=2d5f1f7e-7a4a-41e7-bb88-5f23cf874195"/>
</item>
<item>
<title>Trigger for Steam Big Picture using custom function not working</title>
<link>https://www.displayfusion.com/Discussions/View/trigger-for-steam-big-picture-using-custom-function-not-working/?ID=fea3896d-3672-407d-af8f-871f3b25fa18</link>
<pubDate>Tue, 17 Jan 2017 16:23:04 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/trigger-for-steam-big-picture-using-custom-function-not-working/?ID=fea3896d-3672-407d-af8f-871f3b25fa18</guid>
<category>DisplayFusion</category>
<description><![CDATA[Hi,
I'm still trying to get something to work in DisplayFusion, it doesn't seem to like me. I am now trying to get Steam Big Picture to launch on my TV, instead of my monitor, I am using the custom function in the library.
I've created a monitor profile called Big Screen Gaming Profile, when i ...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Hi,<br/>
<br/>
I'm still trying to get something to work in DisplayFusion, it doesn't seem to like me. I am now trying to get Steam Big Picture to launch on my TV, instead of my monitor, I am using the custom function in the library.<br/>
<br/>
I've created a monitor profile called Big Screen Gaming Profile, when i switch to this profile it should set my TV to 30hz instead of 24hz and then trigger the custom function. I have amended the variables in the function as follows and kept the rest of it the same.<br/>
<br/>
When I switch the monitor profile the hz of the TV changes successfully the 2nd monitor doesn't become primary, steam does not even maximise let alone switch to big picture. <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="#code019e62751c7c7227875f46a1be21d512" 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('code019e62751c7c7227875f46a1be21d512Js'); 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="code019e62751c7c7227875f46a1be21d512Js" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%; min-height:75px;">using System;
using System.Drawing;

// The 'windowHandle' parameter will contain the window handle for the:
//   - Active window when run by hotkey
//   - Window Location target when run by a Window Location rule
//   - TitleBar Button owner when run by a TitleBar Button
//   - Jump List owner when run from a Taskbar Jump List
//   - Currently focused window if none of these match
public static class DisplayFusionFunction
{
public static void Run(IntPtr windowHandle)
{
//replace these variables with ones that will work on your system
string defaultProfile = "Standard Profile";
string bigPictureProfile = "Big Screen Gaming Profile";
string steamDirectory = @"C:\\Program Files (x86)\\Steam\\Steam.exe";
const int waitForever = 0;

// get current profile name
string currentProfileName = BFS.DisplayFusion.GetCurrentMonitorProfile();
if(currentProfileName == "randomspam")
currentProfileName = defaultProfile;

// close Steam if it is running
uint steamID;
bool wasSteamRunning = BFS.Application.IsAppRunningByFile(steamDirectory);
if(wasSteamRunning)
{
steamID = BFS.Application.GetAppIDByFile(steamDirectory);
BFS.Application.Kill(steamID);

// wait for Steam to exit
BFS.Application.WaitForExitByAppID(steamID, waitForever);
}

// wake up the monitors
BFS.General.WakeMonitors();

// load the big picture monitor profile and wait for it to switch
BFS.DisplayFusion.LoadMonitorProfile(bigPictureProfile);
string profileName = BFS.DisplayFusion.GetCurrentMonitorProfile();
while(!profileName.Equals(bigPictureProfile, StringComparison.OrdinalIgnoreCase))
{
BFS.General.ThreadWait(100);
profileName = BFS.DisplayFusion.GetCurrentMonitorProfile();
}

// start Steam in Big Picture mode
steamID = BFS.Application.Start(steamDirectory, "-bigpicture");

// wait for Steam to exit
BFS.Application.WaitForExitByAppID(steamID, waitForever);

// restart Steam in normal mode
if(wasSteamRunning)
BFS.Application.Start(steamDirectory, "");

// wake up the monitors
BFS.General.WakeMonitors();

// load the last running monitor profile and wait for it to switch
BFS.DisplayFusion.LoadMonitorProfile(currentProfileName);
}
}</pre><textarea id="code019e62751c7c7227875f46a1be21d512" name="code019e62751c7c7227875f46a1be21d512" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div><br/>
<br/>
Any ideas?<br/>
<br/>
Cheers
</div>
]]></content:encoded>
<media:thumbnail url="https://www.displayfusion.com/Discussions/Download/?ID=2d5f1f7e-7a4a-41e7-bb88-5f23cf874195"/>
</item>
</channel>
</rss>