<?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: Playing a sound after switching default audio output devices apparently doesn't work</title>
<atom:link href="https://www.displayfusion.com/Discussions/RSS/?TopicID=019be555-3ce3-72d6-b417-afa84d87e659" rel="self" type="application/rss+xml" />
<link>https://www.displayfusion.com/Discussions/RSS/?TopicID=019be555-3ce3-72d6-b417-afa84d87e659</link>
<description>DisplayFusion RSS: Playing a sound after switching default audio output devices apparently doesn't work</description>
<lastBuildDate>Thu, 21 May 2026 14:07:55 GMT</lastBuildDate>
<language>en</language>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<generator>https://www.displayfusion.com/Discussions/RSS/?TopicID=019be555-3ce3-72d6-b417-afa84d87e659</generator>
<item>
<title>RE: Playing a sound after switching default audio output devices apparently doesn't work</title>
<link>https://www.displayfusion.com/Discussions/View/playing-a-sound-after-switching-default-audio-output-devices-apparently-doesnt-work/?ID=019be555-3ce3-72d6-b417-afa84d87e659#5</link>
<pubDate>Wed, 25 Feb 2026 16:59:35 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/playing-a-sound-after-switching-default-audio-output-devices-apparently-doesnt-work/?ID=019be555-3ce3-72d6-b417-afa84d87e659#5</guid>
<category>DisplayFusion</category>
<description><![CDATA[That's the solution, thank you so much for your help!]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
That's the solution, thank you so much for your help!
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Playing a sound after switching default audio output devices apparently doesn't work</title>
<link>https://www.displayfusion.com/Discussions/View/playing-a-sound-after-switching-default-audio-output-devices-apparently-doesnt-work/?ID=019be555-3ce3-72d6-b417-afa84d87e659#4</link>
<pubDate>Wed, 25 Feb 2026 16:15:14 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/playing-a-sound-after-switching-default-audio-output-devices-apparently-doesnt-work/?ID=019be555-3ce3-72d6-b417-afa84d87e659#4</guid>
<category>DisplayFusion</category>
<description><![CDATA[Ok yeah, using the same hotkey for multiple scripts isn't supported, so you'll get some odd results with that. You can add this line in your script to get it to happen all at once though:
BFS.DisplayFusion.RunFunction("Set Next Playback Device as Default");]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Ok yeah, using the same hotkey for multiple scripts isn't supported, so you'll get some odd results with that. You can add this line in your script to get it to happen all at once though: <br/>
<br/>
BFS.DisplayFusion.RunFunction("Set Next Playback Device as Default");
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Playing a sound after switching default audio output devices apparently doesn't work</title>
<link>https://www.displayfusion.com/Discussions/View/playing-a-sound-after-switching-default-audio-output-devices-apparently-doesnt-work/?ID=019be555-3ce3-72d6-b417-afa84d87e659#3</link>
<pubDate>Tue, 24 Feb 2026 08:23:21 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/playing-a-sound-after-switching-default-audio-output-devices-apparently-doesnt-work/?ID=019be555-3ce3-72d6-b417-afa84d87e659#3</guid>
<category>DisplayFusion</category>
<description><![CDATA[I'm so sorry for the late reply, I thought I had e-mail notifications turned on!
The functions work as intended if they have separate hotkeys.]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
I'm so sorry for the late reply, I thought I had e-mail notifications turned on!<br/>
<br/>
The functions work as intended if they have separate hotkeys.
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Playing a sound after switching default audio output devices apparently doesn't work</title>
<link>https://www.displayfusion.com/Discussions/View/playing-a-sound-after-switching-default-audio-output-devices-apparently-doesnt-work/?ID=019be555-3ce3-72d6-b417-afa84d87e659#2</link>
<pubDate>Thu, 22 Jan 2026 21:03:07 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/playing-a-sound-after-switching-default-audio-output-devices-apparently-doesnt-work/?ID=019be555-3ce3-72d6-b417-afa84d87e659#2</guid>
<category>DisplayFusion</category>
<description><![CDATA[If you assign separate hotkeys to each function, do they work if you run each one?]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
If you assign separate hotkeys to each function, do they work if you run each one?
</div>
]]></content:encoded>
</item>
<item>
<title>Playing a sound after switching default audio output devices apparently doesn't work</title>
<link>https://www.displayfusion.com/Discussions/View/playing-a-sound-after-switching-default-audio-output-devices-apparently-doesnt-work/?ID=019be555-3ce3-72d6-b417-afa84d87e659</link>
<pubDate>Thu, 22 Jan 2026 10:52:07 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/playing-a-sound-after-switching-default-audio-output-devices-apparently-doesnt-work/?ID=019be555-3ce3-72d6-b417-afa84d87e659</guid>
<category>DisplayFusion</category>
<description><![CDATA[Hello, first post and it's obviously a post asking for help. Sorry about that.
Fantastic software, by the way! I've owned a copy of DisplayFusion Pro via Steam for more than a year now, and I can't really work without it anymore.
My problem at the moment is with a custom script. I have a hotkey...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Hello, first post and it's obviously a post asking for help. Sorry about that.<br/>
<br/>
Fantastic software, by the way! I've owned a copy of DisplayFusion Pro via Steam for more than a year now, and I can't really work without it anymore.<br/>
<br/>
My problem at the moment is with a custom script. I have a hotkey assigned to set the next playback device as default, and since Windows no longer plays a notification sound whenever the default device changes, I figured a custom script would do the trick. However, I've not really been able to get it to work properly, and I don't know why.<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="#code019e4add44ab772e99388d581fbb02e9" 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('code019e4add44ab772e99388d581fbb02e9Js'); 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="code019e4add44ab772e99388d581fbb02e9Js" 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)
    {
        bool ok = BFS.General.Sleep(500);BFS.Audio.PlayWAV("C:\\Windows\\Media\\Windows Notify System Generic.wav");
        }
}</pre><textarea id="code019e4add44ab772e99388d581fbb02e9" name="code019e4add44ab772e99388d581fbb02e9" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div><br/>
<br/>
This is the whole thing, with the comments edited out. Might be a bit messy, but it successfully verifies, and it runs properly when I test it out. Half a second pause then the notify sound plays.<br/>
<br/>
However, when I assign the script the same hotkey as the aforementioned default playback device function, the sound doesn't play. Not from my speakers nor headphones.
</div>
]]></content:encoded>
</item>
</channel>
</rss>