<?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: Problem with a custom function for audio devices</title>
<atom:link href="https://www.displayfusion.com/Discussions/RSS/?TopicID=32d47216-b701-460b-be67-abd00f78c547" rel="self" type="application/rss+xml" />
<link>https://www.displayfusion.com/Discussions/RSS/?TopicID=32d47216-b701-460b-be67-abd00f78c547</link>
<description>DisplayFusion RSS: Problem with a custom function for audio devices</description>
<lastBuildDate>Sun, 05 Apr 2026 17:05:48 GMT</lastBuildDate>
<language>en</language>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<generator>https://www.displayfusion.com/Discussions/RSS/?TopicID=32d47216-b701-460b-be67-abd00f78c547</generator>
<item>
<title>RE: Problem with a custom function for audio devices</title>
<link>https://www.displayfusion.com/Discussions/View/problem-with-a-custom-function-for-audio-devices/?ID=32d47216-b701-460b-be67-abd00f78c547#8</link>
<pubDate>Fri, 09 Sep 2016 19:18:59 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/problem-with-a-custom-function-for-audio-devices/?ID=32d47216-b701-460b-be67-abd00f78c547#8</guid>
<category>DisplayFusion</category>
<description><![CDATA[Last month, we released DisplayFusion 8.0, and this issue should be all fixed up. If you still have any trouble with 8.0, please let us know!
Thanks!]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Last month, we released DisplayFusion 8.0, and this issue should be all fixed up. If you still have any trouble with 8.0, please let us know!<br/>
<br/>
Thanks!
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Problem with a custom function for audio devices</title>
<link>https://www.displayfusion.com/Discussions/View/problem-with-a-custom-function-for-audio-devices/?ID=32d47216-b701-460b-be67-abd00f78c547#7</link>
<pubDate>Fri, 05 Aug 2016 18:25:14 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/problem-with-a-custom-function-for-audio-devices/?ID=32d47216-b701-460b-be67-abd00f78c547#7</guid>
<category>DisplayFusion</category>
<description><![CDATA[Your original script works for me here. Are the device names in your script exactly the same as what shows up in the list when you use Jon's script? On mine, I have to use these in your script, just using the name in the brackets doesn't work:
Speakers / Headphones (Realtek High Definition Audio...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Your original script works for me here. Are the device names in your script exactly the same as what shows up in the list when you use Jon's script? On mine, I have to use these in your script, just using the name in the brackets doesn't work:<br/>
<br/>
Speakers / Headphones (Realtek High Definition Audio Device)<br/>
Speakers (Plantronics .Audio 995 DSP)
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Problem with a custom function for audio devices</title>
<link>https://www.displayfusion.com/Discussions/View/problem-with-a-custom-function-for-audio-devices/?ID=32d47216-b701-460b-be67-abd00f78c547#6</link>
<pubDate>Fri, 05 Aug 2016 16:55:18 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/problem-with-a-custom-function-for-audio-devices/?ID=32d47216-b701-460b-be67-abd00f78c547#6</guid>
<category>DisplayFusion</category>
<description><![CDATA[I was too quick to celebrate, the script shows the audio devices, but it doesn't change when you select a different one. Jon Tackabury's script does work.]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
I was too quick to celebrate, the script shows the audio devices, but it doesn't change when you select a different one. Jon Tackabury's script does work.
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Problem with a custom function for audio devices</title>
<link>https://www.displayfusion.com/Discussions/View/problem-with-a-custom-function-for-audio-devices/?ID=32d47216-b701-460b-be67-abd00f78c547#5</link>
<pubDate>Fri, 05 Aug 2016 13:53:17 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/problem-with-a-custom-function-for-audio-devices/?ID=32d47216-b701-460b-be67-abd00f78c547#5</guid>
<category>DisplayFusion</category>
<description><![CDATA[Works in the beta from august 4!
Thanks]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Works in the beta from august 4!<br/>
Thanks
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Problem with a custom function for audio devices</title>
<link>https://www.displayfusion.com/Discussions/View/problem-with-a-custom-function-for-audio-devices/?ID=32d47216-b701-460b-be67-abd00f78c547#4</link>
<pubDate>Thu, 04 Aug 2016 15:37:57 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/problem-with-a-custom-function-for-audio-devices/?ID=32d47216-b701-460b-be67-abd00f78c547#4</guid>
<category>DisplayFusion</category>
<description><![CDATA[Thanks Keith!
Yes please also make it so you don't have to hardcode the audio devices]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Thanks Keith!<br/>
<br/>
Yes please also make it so you don't have to hardcode the audio devices <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=":)" HelpButtonDataAlign="BelowMiddle" />
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Problem with a custom function for audio devices</title>
<link>https://www.displayfusion.com/Discussions/View/problem-with-a-custom-function-for-audio-devices/?ID=32d47216-b701-460b-be67-abd00f78c547#3</link>
<pubDate>Thu, 04 Aug 2016 15:28:26 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/problem-with-a-custom-function-for-audio-devices/?ID=32d47216-b701-460b-be67-abd00f78c547#3</guid>
<category>DisplayFusion</category>
<description><![CDATA[The issue will be fixed in the next build, but you can also update your script so that you don't need to hard-code your audio devices:
Code
Copy
Select All
using System;
using System.Drawing;
public static class DisplayFusionFunction
{
public static void Run()
{
// Prompt to select an a...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
The issue will be fixed in the next build, but you can also update your script so that you don't need to hard-code your audio devices:<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="#code019d5e9b98507277b5fc35f11c013cb5" 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('code019d5e9b98507277b5fc35f11c013cb5Js'); 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="code019d5e9b98507277b5fc35f11c013cb5Js" 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()
    {
        // Prompt to select an audio device
        string selectedAudioDevice = BFS.Dialog.GetUserInputList("Please select an audio device:", BFS.Audio.GetPlaybackDevices());

        // Set the selected device as the default playback device
        BFS.Audio.SetDefaultPlaybackSounds(selectedAudioDevice);
    }
}</pre><textarea id="code019d5e9b98507277b5fc35f11c013cb5" name="code019d5e9b98507277b5fc35f11c013cb5" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div>
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Problem with a custom function for audio devices</title>
<link>https://www.displayfusion.com/Discussions/View/problem-with-a-custom-function-for-audio-devices/?ID=32d47216-b701-460b-be67-abd00f78c547#2</link>
<pubDate>Thu, 04 Aug 2016 15:19:18 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/problem-with-a-custom-function-for-audio-devices/?ID=32d47216-b701-460b-be67-abd00f78c547#2</guid>
<category>DisplayFusion</category>
<description><![CDATA[We were able to reproduce this issue here, and I've added it to our list. We'll be sure to let you know as soon as we're able to fix it up
Thanks!]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
We were able to reproduce this issue here, and I've added it to our list. We'll be sure to let you know as soon as we're able to fix it up <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=":)" HelpButtonDataAlign="BelowMiddle" /><br/>
<br/>
Thanks!
</div>
]]></content:encoded>
</item>
<item>
<title>Problem with a custom function for audio devices</title>
<link>https://www.displayfusion.com/Discussions/View/problem-with-a-custom-function-for-audio-devices/?ID=32d47216-b701-460b-be67-abd00f78c547</link>
<pubDate>Sat, 30 Jul 2016 11:26:46 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/problem-with-a-custom-function-for-audio-devices/?ID=32d47216-b701-460b-be67-abd00f78c547</guid>
<category>DisplayFusion</category>
<description><![CDATA[Hi,
I downloaded this custom script that prompts you to select an audio device.
When clicking the 'run script' in the edit dialog, it shows a select box with the audio devices. But when I press the key combo outside displayfusion settings, it just prompts "Please select an audio device", but wi...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Hi,<br/>
<br/>
I downloaded this custom script that prompts you to select an audio device.<br/>
When clicking the 'run script' in the edit dialog, it shows a select box with the audio devices. But when I press the key combo outside displayfusion settings, it just prompts "Please select an audio device", but without a select box.<br/>
<br/>
This is the script:<br/>
using System;<br/>
using System.Drawing;<br/>
<br/>
public static class DisplayFusionFunction<br/>
{<br/>
public static void Run()<br/>
{<br/>
// Specify your exact audio device names here (as seen in the tray &gt; Audio Devices menu)<br/>
string[] audioDevices = {<br/>
"Logitech G930 Gaming Headset",<br/>
"Realtek High Definition Audio"<br/>
};<br/>
<br/>
// Prompt to select an audio device<br/>
string selectedAudioDevice = BFS.Dialog.GetUserInputList("Please select an audio device to switch to.", audioDevices);<br/>
<br/>
// Set the selected device as the default playback device<br/>
BFS.Audio.SetDefaultPlaybackSounds(selectedAudioDevice);<br/>
}<br/>
}
</div>
]]></content:encoded>
</item>
</channel>
</rss>