<?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: Can't get the script to work</title>
<atom:link href="https://www.displayfusion.com/Discussions/RSS/?TopicID=7349d44c-b37b-415a-a05e-5ef3c673f3d3" rel="self" type="application/rss+xml" />
<link>https://www.displayfusion.com/Discussions/RSS/?TopicID=7349d44c-b37b-415a-a05e-5ef3c673f3d3</link>
<description>DisplayFusion RSS: Can't get the script to work</description>
<lastBuildDate>Wed, 21 Oct 2026 02:42:56 GMT</lastBuildDate>
<language>en</language>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<generator>https://www.displayfusion.com/Discussions/RSS/?TopicID=7349d44c-b37b-415a-a05e-5ef3c673f3d3</generator>
<item>
<title>RE: Can't get the script to work</title>
<link>https://www.displayfusion.com/Discussions/View/cant-get-the-script-to-work/?ID=7349d44c-b37b-415a-a05e-5ef3c673f3d3#4</link>
<pubDate>Thu, 06 Aug 2015 20:25:47 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/cant-get-the-script-to-work/?ID=7349d44c-b37b-415a-a05e-5ef3c673f3d3#4</guid>
<category>DisplayFusion</category>
<description><![CDATA[Awesome, glad to hear you were able to get it sorted! We'll add it to the online repository]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Awesome, glad to hear you were able to get it sorted! We'll add it to the online repository <img src="https://www.displayfusion.com/MediaCommon/SVGs/FontAwesome/face-smile.light.svg" alt=":)" style="box-sizing:border-box;position:relative;overflow:hidden;vertical-align:middle !important;width:16px;height:16px;" HelpButtonData=":)" />
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Can't get the script to work</title>
<link>https://www.displayfusion.com/Discussions/View/cant-get-the-script-to-work/?ID=7349d44c-b37b-415a-a05e-5ef3c673f3d3#3</link>
<pubDate>Thu, 06 Aug 2015 12:17:13 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/cant-get-the-script-to-work/?ID=7349d44c-b37b-415a-a05e-5ef3c673f3d3#3</guid>
<category>DisplayFusion</category>
<description><![CDATA[Ok, thank you. I've changed this, but it don't work again.
What's about:
//Environment.GetEnvironmentVariable("ProgramFiles(x86)") + "\\Steam\\Steam.exe";
Is this important? Nonetheless i have found an alternative solution:
Code
Copy
Select All
using System;&#xA;using System.Drawing;&#xA;&...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Ok, thank you. I've changed this, but it don't work again.<br/>
<br/>
What's about:<br/>
<br/>
//Environment.GetEnvironmentVariable("ProgramFiles(x86)") + "\\Steam\\Steam.exe";<br/>
<br/>
Is this important? Nonetheless i have found an alternative solution:<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="#code01a15c5722a571038f912550ef165a21" 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('code01a15c5722a571038f912550ef165a21Js'); 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="code01a15c5722a571038f912550ef165a21Js" name="code01a15c5722a571038f912550ef165a21Js" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%;min-height:75px">using System;&#xA;using System.Drawing;&#xA;&#xA;// The &#x27;windowHandle&#x27; parameter will contain the window handle for the:&#xA;//   - Active window when run by hotkey&#xA;//   - Window Location target when run by a Window Location rule&#xA;//   - TitleBar Button owner when run by a TitleBar Button&#xA;//   - Jump List owner when run from a Taskbar Jump List&#xA;//   - Currently focused window if none of these match&#xA;public static class DisplayFusionFunction&#xA;{&#xA;public static void Run(IntPtr windowHandle)&#xA;{&#xA;//Laedt das Steam Big Picture Profil (Steam zuvor auf Big Picture einstellen)&#xA;BFS.DisplayFusion.LoadMonitorProfile(&quot;Steam Big Picture&quot;);&#xA;&#xA;//Laedt das entsprechende Audio-Geraet fuer HDMI (kann auch in den Bildschrimprofilen eingestellt werden)&#xA;BFS.Audio.SetDefaultPlaybackSounds(&quot;Panasonic-TV-4 (Nvidia High Definition Audio)&quot;);&#xA;        &#xA;//Starte Steam im Big Picture Mode&#xA;BFS.Application.Start(&quot;D:\\Steam\\Steam.exe&quot;, &quot;&quot;);&#xA;&#xA;//beim beenden auf Steam warten&#xA;BFS.Application.WaitForExitByFile(&quot;*Steam.exe&quot;, 0);&#xA;&#xA;//Laedt das Default Monitor Profil&#xA;BFS.DisplayFusion.LoadMonitorProfile(&quot;GW2760 only TV out&quot;);&#xA;&#xA;//Laedt wieder das Standard Audio-Geraet (kann auch in den Bildschrimprofilen eingestellt werden)&#xA;BFS.Audio.SetDefaultPlaybackSounds(&quot;Speakers (Sound Blaster Z)&quot;);&#xA;}&#xA;}</pre><textarea id="code01a15c5722a571038f912550ef165a21" name="code01a15c5722a571038f912550ef165a21" style="position:absolute;top:0;left:-999999px;width:1px;height:1px"></textarea></div>
</div></div></div><br/>
<br/>
You see i switch to another audio-source even. OK, i know you can do this in monitor profiles, but why not directly in the script?<br/>
<br/>
When i found a solution to start Steam immediately in Big Picture Mode, i will update the whole script.<br/>
<br/>
Greetings<br/>
<br/>
Update:<br/>
I've uploaded the correct script to your database. It works like charm now.
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Can't get the script to work</title>
<link>https://www.displayfusion.com/Discussions/View/cant-get-the-script-to-work/?ID=7349d44c-b37b-415a-a05e-5ef3c673f3d3#2</link>
<pubDate>Wed, 05 Aug 2015 17:32:11 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/cant-get-the-script-to-work/?ID=7349d44c-b37b-415a-a05e-5ef3c673f3d3#2</guid>
<category>DisplayFusion</category>
<description><![CDATA[Ah, the path to Steam needs to have double-backslashes for the directory delimiters, like this:
Code
Copy
Select All
string steamDirectory = @&quot;J:\\Program Files (x86)\\Steam\\Steam.exe&quot;;
I'll fix that up in the repository, thanks!]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Ah, the path to Steam needs to have double-backslashes for the directory delimiters, like this:<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="#code01a15c5722b67038b66bb5da1dc69e48" 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('code01a15c5722b67038b66bb5da1dc69e48Js'); 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="code01a15c5722b67038b66bb5da1dc69e48Js" name="code01a15c5722b67038b66bb5da1dc69e48Js" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%;min-height:75px">string steamDirectory = @&quot;J:\\Program Files (x86)\\Steam\\Steam.exe&quot;;</pre><textarea id="code01a15c5722b67038b66bb5da1dc69e48" name="code01a15c5722b67038b66bb5da1dc69e48" style="position:absolute;top:0;left:-999999px;width:1px;height:1px"></textarea></div>
</div></div></div><br/>
<br/>
I'll fix that up in the repository, thanks!
</div>
]]></content:encoded>
</item>
<item>
<title>Can't get the script to work</title>
<link>https://www.displayfusion.com/Discussions/View/cant-get-the-script-to-work/?ID=7349d44c-b37b-415a-a05e-5ef3c673f3d3</link>
<pubDate>Mon, 03 Aug 2015 13:31:31 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/cant-get-the-script-to-work/?ID=7349d44c-b37b-415a-a05e-5ef3c673f3d3</guid>
<category>DisplayFusion</category>
<description><![CDATA[Hey there,
i have a problem to get the script from orlando2bjr to work properly.
Code
Copy
Select All
using System;&#xA;using System.Drawing;&#xA;&#xA;// The &#x27;windowHandle&#x27; parameter will contain the window handle for the:&#xA;//   - Active window when run by hotkey&#xA;//   - Wind...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Hey there,<br/>
<br/>
i have a problem to get the script from orlando2bjr to work properly.<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="#code01a15c5722c7719d82a08f08761fbf0a" 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('code01a15c5722c7719d82a08f08761fbf0aJs'); 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="code01a15c5722c7719d82a08f08761fbf0aJs" name="code01a15c5722c7719d82a08f08761fbf0aJs" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%;min-height:75px">using System;&#xA;using System.Drawing;&#xA;&#xA;// The &#x27;windowHandle&#x27; parameter will contain the window handle for the:&#xA;//   - Active window when run by hotkey&#xA;//   - Window Location target when run by a Window Location rule&#xA;//   - TitleBar Button owner when run by a TitleBar Button&#xA;//   - Jump List owner when run from a Taskbar Jump List&#xA;//   - Currently focused window if none of these match&#xA;public static class DisplayFusionFunction&#xA;{&#xA;public static void Run(IntPtr windowHandle)&#xA;{&#xA;//replace these variables with ones that will work on your system&#xA;string defaultProfile = &quot;[your default profile]&quot;;&#xA;string bigPictureProfile = &quot;[your big picture profile]&quot;;&#xA;string steamDirectory = @&quot;J:\Program Files (x86)\Steam\Steam.exe&quot;; //Environment.GetEnvironmentVariable(&quot;ProgramFiles(x86)&quot;) &#x2B; &quot;\\Steam\\Steam.exe&quot;;&#xA;const int waitForever = 0;&#xA;&#xA;// get current profile name&#xA;string currentProfileName = BFS.DisplayFusion.GetCurrentMonitorProfile();&#xA;if(currentProfileName == &quot;&quot;)&#xA;currentProfileName = defaultProfile;&#xA;&#xA;// close Steam if it is running&#xA;uint steamID;&#xA;bool wasSteamRunning = BFS.Application.IsAppRunningByFile(steamDirectory);&#xA;if(wasSteamRunning)&#xA;{&#xA;steamID = BFS.Application.GetAppIDByFile(steamDirectory);&#xA;BFS.Application.Kill(steamID);&#xA;&#xA;// wait for Steam to exit&#xA;BFS.Application.WaitForExitByAppID(steamID, waitForever);&#xA;}&#xA;&#xA;// wake up the monitors&#xA;BFS.General.WakeMonitors();&#xA;&#xA;// load the big picture monitor profile and wait for it to switch&#xA;BFS.DisplayFusion.LoadMonitorProfile(bigPictureProfile);&#xA;string profileName = BFS.DisplayFusion.GetCurrentMonitorProfile();&#xA;while(!profileName.Equals(bigPictureProfile, StringComparison.OrdinalIgnoreCase))&#xA;{&#xA;BFS.General.ThreadWait(100);&#xA;profileName = BFS.DisplayFusion.GetCurrentMonitorProfile();&#xA;}&#xA;&#xA;// start Steam in Big Picture mode&#xA;steamID = BFS.Application.Start(steamDirectory, &quot;-bigpicture&quot;);&#xA;&#xA;// wait for Steam to exit&#xA;BFS.Application.WaitForExitByAppID(steamID, waitForever);&#xA;&#xA;// restart Steam in normal mode&#xA;if(wasSteamRunning)&#xA;BFS.Application.Start(steamDirectory, &quot;&quot;);&#xA;&#xA;// wake up the monitors&#xA;BFS.General.WakeMonitors();&#xA;&#xA;// load the last running monitor profile and wait for it to switch&#xA;BFS.DisplayFusion.LoadMonitorProfile(currentProfileName);&#xA;}&#xA;}</pre><textarea id="code01a15c5722c7719d82a08f08761fbf0a" name="code01a15c5722c7719d82a08f08761fbf0a" style="position:absolute;top:0;left:-999999px;width:1px;height:1px"></textarea></div>
</div></div></div><br/>
<br/>
I've set my default and Big Picture profie and also the path to steam. When i start the script the monitor change to the other and steam get closed but dont start again.<br/>
<br/>
What did i do wrong?<br/>
<br/>
Thx and greeetings
</div>
]]></content:encoded>
</item>
</channel>
</rss>