<?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 Rule Repeats Itself Over and Over When Closing a Window</title>
<atom:link href="https://www.displayfusion.com/Discussions/RSS/?TopicID=51e40fe6-b744-4c06-88e8-d00cc079a8a4" rel="self" type="application/rss+xml" />
<link>https://www.displayfusion.com/Discussions/RSS/?TopicID=51e40fe6-b744-4c06-88e8-d00cc079a8a4</link>
<description>DisplayFusion RSS: Trigger Rule Repeats Itself Over and Over When Closing a Window</description>
<lastBuildDate>Sun, 19 Apr 2026 19:35:47 GMT</lastBuildDate>
<language>en</language>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<generator>https://www.displayfusion.com/Discussions/RSS/?TopicID=51e40fe6-b744-4c06-88e8-d00cc079a8a4</generator>
<item>
<title>RE: Trigger Rule Repeats Itself Over and Over When Closing a Window</title>
<link>https://www.displayfusion.com/Discussions/View/trigger-rule-repeats-itself-over-and-over-when-closing-a-window/?ID=51e40fe6-b744-4c06-88e8-d00cc079a8a4#19</link>
<pubDate>Thu, 18 Mar 2021 17:29:30 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/trigger-rule-repeats-itself-over-and-over-when-closing-a-window/?ID=51e40fe6-b744-4c06-88e8-d00cc079a8a4#19</guid>
<category>DisplayFusion</category>
<description><![CDATA[I don't think the script code itself is an issue, no, but let's try to confirm. Could you edit your script to run this line instead of playing a sound file:
BFS.General.LogText("Debug: Script Executed");
And then capture a new debug log (only open then close File Explorer once while debug loggi...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
I don't think the script code itself is an issue, no, but let's try to confirm. Could you edit your script to run this line instead of playing a sound file:<br/>
<br/>
<div class="Inline"><pre>BFS.General.LogText("Debug: Script Executed");</pre></div><br/>
<br/>
And then capture a new debug log (only open then close File Explorer once while debug logging is enabled) and send it over? I'd like to see if that line shows up multiple times as well.
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Trigger Rule Repeats Itself Over and Over When Closing a Window</title>
<link>https://www.displayfusion.com/Discussions/View/trigger-rule-repeats-itself-over-and-over-when-closing-a-window/?ID=51e40fe6-b744-4c06-88e8-d00cc079a8a4#18</link>
<pubDate>Wed, 17 Mar 2021 15:24:25 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/trigger-rule-repeats-itself-over-and-over-when-closing-a-window/?ID=51e40fe6-b744-4c06-88e8-d00cc079a8a4#18</guid>
<category>DisplayFusion</category>
<description><![CDATA[Hi,
thanks for your response. I updated to beta 7 but unfortunately the issue is still the same.
Is it really not the code I use that's causing the problem?]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Hi,<br/>
<br/>
thanks for your response. I updated to beta 7 but unfortunately the issue is still the same.<br/>
<br/>
Is it really not the code I use that's causing the problem?
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Trigger Rule Repeats Itself Over and Over When Closing a Window</title>
<link>https://www.displayfusion.com/Discussions/View/trigger-rule-repeats-itself-over-and-over-when-closing-a-window/?ID=51e40fe6-b744-4c06-88e8-d00cc079a8a4#17</link>
<pubDate>Wed, 17 Mar 2021 12:35:28 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/trigger-rule-repeats-itself-over-and-over-when-closing-a-window/?ID=51e40fe6-b744-4c06-88e8-d00cc079a8a4#17</guid>
<category>DisplayFusion</category>
<description><![CDATA[Hello,
This issue should be fixed up in the latest beta, available here: https://www.displayfusion.com/Download/Beta. Please let me know if you still run into any trouble after updating.
Thanks!]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Hello,<br/>
<br/>
This issue should be fixed up in the latest beta, available here: https://www.displayfusion.com/Download/Beta. Please let me know if you still run into any trouble after updating.<br/>
<br/>
Thanks!
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Trigger Rule Repeats Itself Over and Over When Closing a Window</title>
<link>https://www.displayfusion.com/Discussions/View/trigger-rule-repeats-itself-over-and-over-when-closing-a-window/?ID=51e40fe6-b744-4c06-88e8-d00cc079a8a4#16</link>
<pubDate>Wed, 24 Feb 2021 15:53:17 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/trigger-rule-repeats-itself-over-and-over-when-closing-a-window/?ID=51e40fe6-b744-4c06-88e8-d00cc079a8a4#16</guid>
<category>DisplayFusion</category>
<description><![CDATA[I had a chance to test this out and was able to confirm the issue still. We're looking into it further and we'll keep you posted.
Thanks!]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
I had a chance to test this out and was able to confirm the issue still. We're looking into it further and we'll keep you posted.<br/>
<br/>
Thanks!
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Trigger Rule Repeats Itself Over and Over When Closing a Window</title>
<link>https://www.displayfusion.com/Discussions/View/trigger-rule-repeats-itself-over-and-over-when-closing-a-window/?ID=51e40fe6-b744-4c06-88e8-d00cc079a8a4#15</link>
<pubDate>Fri, 19 Feb 2021 20:13:35 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/trigger-rule-repeats-itself-over-and-over-when-closing-a-window/?ID=51e40fe6-b744-4c06-88e8-d00cc079a8a4#15</guid>
<category>DisplayFusion</category>
<description><![CDATA[Thanks! I'm a bit behind on my testing queue but I'm planning to give this a go early next week.]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Thanks! I'm a bit behind on my testing queue but I'm planning to give this a go early next week.
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Trigger Rule Repeats Itself Over and Over When Closing a Window</title>
<link>https://www.displayfusion.com/Discussions/View/trigger-rule-repeats-itself-over-and-over-when-closing-a-window/?ID=51e40fe6-b744-4c06-88e8-d00cc079a8a4#14</link>
<pubDate>Sat, 13 Feb 2021 21:25:28 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/trigger-rule-repeats-itself-over-and-over-when-closing-a-window/?ID=51e40fe6-b744-4c06-88e8-d00cc079a8a4#14</guid>
<category>DisplayFusion</category>
<description><![CDATA[Certainly, here it is.]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Certainly, here it is.
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Trigger Rule Repeats Itself Over and Over When Closing a Window</title>
<link>https://www.displayfusion.com/Discussions/View/trigger-rule-repeats-itself-over-and-over-when-closing-a-window/?ID=51e40fe6-b744-4c06-88e8-d00cc079a8a4#13</link>
<pubDate>Fri, 12 Feb 2021 19:42:47 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/trigger-rule-repeats-itself-over-and-over-when-closing-a-window/?ID=51e40fe6-b744-4c06-88e8-d00cc079a8a4#13</guid>
<category>DisplayFusion</category>
<description><![CDATA[My bad, I think I may have had the wrong log file open when I last looked!
I can see where it's running a ton of times here. Can you attach a backup of your DisplayFusion settings (Settings  Options  Export) so that I can do some further testing here?]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
My bad, I think I may have had the wrong log file open when I last looked!<br/>
<br/>
I can see where it's running a ton of times here. Can you attach a backup of your DisplayFusion settings (Settings > Options > Export) so that I can do some further testing here?
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Trigger Rule Repeats Itself Over and Over When Closing a Window</title>
<link>https://www.displayfusion.com/Discussions/View/trigger-rule-repeats-itself-over-and-over-when-closing-a-window/?ID=51e40fe6-b744-4c06-88e8-d00cc079a8a4#12</link>
<pubDate>Thu, 11 Feb 2021 18:55:17 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/trigger-rule-repeats-itself-over-and-over-when-closing-a-window/?ID=51e40fe6-b744-4c06-88e8-d00cc079a8a4#12</guid>
<category>DisplayFusion</category>
<description><![CDATA[Strange to see Firefox as I didn't do anything with it at the relevant point in time. To reproduce the issue, I enabled the trigger rule, saved, and closed an Explorer window, which should play the sound once, but instead spams it ad infinitum. I let it go for a bit, then disabled the rule and sa...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Strange to see Firefox as I didn't do anything with it at the relevant point in time. To reproduce the issue, I enabled the trigger rule, saved, and closed an Explorer window, which should play the sound once, but instead spams it ad infinitum. I let it go for a bit, then disabled the rule and saved again to stop the system slowdown and sound file spam.<br/>
<br/>
So I took a look at the debug file myself and the first time I see "Close Window SFX" is at 04:05:53. I said 04:04:50 because that was the time displayed in Windows when I enabled the rule and closed the Explorer window, so I'm not sure if there's a mismatch with my Windows clock and DF's logging, or if logging took a while due to the system slowdown.
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Trigger Rule Repeats Itself Over and Over When Closing a Window</title>
<link>https://www.displayfusion.com/Discussions/View/trigger-rule-repeats-itself-over-and-over-when-closing-a-window/?ID=51e40fe6-b744-4c06-88e8-d00cc079a8a4#11</link>
<pubDate>Wed, 10 Feb 2021 18:16:26 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/trigger-rule-repeats-itself-over-and-over-when-closing-a-window/?ID=51e40fe6-b744-4c06-88e8-d00cc079a8a4#11</guid>
<category>DisplayFusion</category>
<description><![CDATA[Thanks! Did this happen when closing Firefox? And did the Trigger run twice?]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Thanks! Did this happen when closing Firefox? And did the Trigger run twice?
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Trigger Rule Repeats Itself Over and Over When Closing a Window</title>
<link>https://www.displayfusion.com/Discussions/View/trigger-rule-repeats-itself-over-and-over-when-closing-a-window/?ID=51e40fe6-b744-4c06-88e8-d00cc079a8a4#10</link>
<pubDate>Sat, 06 Feb 2021 03:13:06 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/trigger-rule-repeats-itself-over-and-over-when-closing-a-window/?ID=51e40fe6-b744-4c06-88e8-d00cc079a8a4#10</guid>
<category>DisplayFusion</category>
<description><![CDATA[Here's the debug info. Issue reproduction at 04:04:50, give or take.]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Here's the debug info. Issue reproduction at 04:04:50, give or take.
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Trigger Rule Repeats Itself Over and Over When Closing a Window</title>
<link>https://www.displayfusion.com/Discussions/View/trigger-rule-repeats-itself-over-and-over-when-closing-a-window/?ID=51e40fe6-b744-4c06-88e8-d00cc079a8a4#9</link>
<pubDate>Tue, 02 Feb 2021 13:40:24 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/trigger-rule-repeats-itself-over-and-over-when-closing-a-window/?ID=51e40fe6-b744-4c06-88e8-d00cc079a8a4#9</guid>
<category>DisplayFusion</category>
<description><![CDATA[Ok, would you be able to send over a new debug build from Beta 4?]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Ok, would you be able to send over a new debug build from Beta 4?
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Trigger Rule Repeats Itself Over and Over When Closing a Window</title>
<link>https://www.displayfusion.com/Discussions/View/trigger-rule-repeats-itself-over-and-over-when-closing-a-window/?ID=51e40fe6-b744-4c06-88e8-d00cc079a8a4#8</link>
<pubDate>Tue, 02 Feb 2021 01:17:57 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/trigger-rule-repeats-itself-over-and-over-when-closing-a-window/?ID=51e40fe6-b744-4c06-88e8-d00cc079a8a4#8</guid>
<category>DisplayFusion</category>
<description><![CDATA[Hi, I installed version 9.7.2 Beta 4 but unfortunately the issue is not resolved.]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Hi, I installed version 9.7.2 Beta 4 but unfortunately the issue is not resolved.
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Trigger Rule Repeats Itself Over and Over When Closing a Window</title>
<link>https://www.displayfusion.com/Discussions/View/trigger-rule-repeats-itself-over-and-over-when-closing-a-window/?ID=51e40fe6-b744-4c06-88e8-d00cc079a8a4#7</link>
<pubDate>Wed, 27 Jan 2021 16:41:49 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/trigger-rule-repeats-itself-over-and-over-when-closing-a-window/?ID=51e40fe6-b744-4c06-88e8-d00cc079a8a4#7</guid>
<category>DisplayFusion</category>
<description><![CDATA[We've released 9.7.2 Beta 4 last week. Could you give it a try and let us know how it works out?
Thanks!]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
We've released <a href="https://www.displayfusion.com/Download/Beta" target="_blank" rel="nofollow"><b>9.7.2 Beta 4</b></a> last week. Could you give it a try and let us know how it works out?<br/>
<br/>
Thanks!
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Trigger Rule Repeats Itself Over and Over When Closing a Window</title>
<link>https://www.displayfusion.com/Discussions/View/trigger-rule-repeats-itself-over-and-over-when-closing-a-window/?ID=51e40fe6-b744-4c06-88e8-d00cc079a8a4#6</link>
<pubDate>Fri, 15 Jan 2021 20:03:41 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/trigger-rule-repeats-itself-over-and-over-when-closing-a-window/?ID=51e40fe6-b744-4c06-88e8-d00cc079a8a4#6</guid>
<category>DisplayFusion</category>
<description><![CDATA[Ok, we think we have an idea on how to resolve this. We'll let you know when there's a new beta out with the attempted fix
Thanks!]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Ok, we think we have an idea on how to resolve this. We'll let you know when there's a new beta out with the attempted fix <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>RE: Trigger Rule Repeats Itself Over and Over When Closing a Window</title>
<link>https://www.displayfusion.com/Discussions/View/trigger-rule-repeats-itself-over-and-over-when-closing-a-window/?ID=51e40fe6-b744-4c06-88e8-d00cc079a8a4#5</link>
<pubDate>Wed, 13 Jan 2021 22:09:48 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/trigger-rule-repeats-itself-over-and-over-when-closing-a-window/?ID=51e40fe6-b744-4c06-88e8-d00cc079a8a4#5</guid>
<category>DisplayFusion</category>
<description><![CDATA[Just a quick update, I can see in the log where the Trigger is firing many times after you close the window. I'm working on reproducing the issue here so that we can troubleshoot further.
Thanks!]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Just a quick update, I can see in the log where the Trigger is firing many times after you close the window. I'm working on reproducing the issue here so that we can troubleshoot further.<br/>
<br/>
Thanks!
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Trigger Rule Repeats Itself Over and Over When Closing a Window</title>
<link>https://www.displayfusion.com/Discussions/View/trigger-rule-repeats-itself-over-and-over-when-closing-a-window/?ID=51e40fe6-b744-4c06-88e8-d00cc079a8a4#4</link>
<pubDate>Tue, 12 Jan 2021 18:06:32 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/trigger-rule-repeats-itself-over-and-over-when-closing-a-window/?ID=51e40fe6-b744-4c06-88e8-d00cc079a8a4#4</guid>
<category>DisplayFusion</category>
<description><![CDATA[Thanks! Sorry for the delay on this, we'll check it out and do some further testing and keep you posted on what we find out]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Thanks! Sorry for the delay on this, we'll check it out and do some further testing and keep you posted on what we find out <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: Trigger Rule Repeats Itself Over and Over When Closing a Window</title>
<link>https://www.displayfusion.com/Discussions/View/trigger-rule-repeats-itself-over-and-over-when-closing-a-window/?ID=51e40fe6-b744-4c06-88e8-d00cc079a8a4#3</link>
<pubDate>Thu, 07 Jan 2021 23:35:34 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/trigger-rule-repeats-itself-over-and-over-when-closing-a-window/?ID=51e40fe6-b744-4c06-88e8-d00cc079a8a4#3</guid>
<category>DisplayFusion</category>
<description><![CDATA[What I did is activate the task, then close an explorer window to reproduce the issue. I closed it exactly at 00:27:02. The function is called "Close Window SFX"]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
What I did is activate the task, then close an explorer window to reproduce the issue. I closed it exactly at 00:27:02. The function is called "Close Window SFX"
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Trigger Rule Repeats Itself Over and Over When Closing a Window</title>
<link>https://www.displayfusion.com/Discussions/View/trigger-rule-repeats-itself-over-and-over-when-closing-a-window/?ID=51e40fe6-b744-4c06-88e8-d00cc079a8a4#2</link>
<pubDate>Wed, 06 Jan 2021 19:38:06 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/trigger-rule-repeats-itself-over-and-over-when-closing-a-window/?ID=51e40fe6-b744-4c06-88e8-d00cc079a8a4#2</guid>
<category>DisplayFusion</category>
<description><![CDATA[Would you be able to send a debug log for this issue?
On the DisplayFusion Settings  Troubleshooting tab, change the Logging drop-down to "L1: Log Minimal" and click Apply
Reproduce the issue and note the time so we'll know where to check in the log file
Click the "Export Info to File" button ...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Would you be able to send a debug log for this issue?<br/>
<br/>
<ul class="ListBullet">
<li>On the DisplayFusion Settings > Troubleshooting tab, change the Logging drop-down to "L1: Log Minimal" and click Apply</li>
<li>Reproduce the issue and note the time so we'll know where to check in the log file</li>
<li>Click the "Export Info to File" button on the Settings > Troubleshooting tab</li>
<li>Reply with the file attached</li>
<li>Disable debug logging after sending the log</li></ul>
<br/>
Thanks!
</div>
]]></content:encoded>
</item>
<item>
<title>Trigger Rule Repeats Itself Over and Over When Closing a Window</title>
<link>https://www.displayfusion.com/Discussions/View/trigger-rule-repeats-itself-over-and-over-when-closing-a-window/?ID=51e40fe6-b744-4c06-88e8-d00cc079a8a4</link>
<pubDate>Sun, 03 Jan 2021 00:33:15 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/trigger-rule-repeats-itself-over-and-over-when-closing-a-window/?ID=51e40fe6-b744-4c06-88e8-d00cc079a8a4</guid>
<category>DisplayFusion</category>
<description><![CDATA[I have added sound effects for most events on my computer, partially for flair and partially so I notice when something happens on my desktop while I'm VR (such as a window opening).
This is the very straightforward script I use for each of the rules (Open, Close, Minimize, Maximize Window):
Co...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
I have added sound effects for most events on my computer, partially for flair and partially so I notice when something happens on my desktop while I'm VR (such as a window opening).<br/>
<br/>
This is the very straightforward script I use for each of the rules (Open, Close, Minimize, Maximize Window):<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="#code019da73df17e758c9bac116ad5d330d7" 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('code019da73df17e758c9bac116ad5d330d7Js'); 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="code019da73df17e758c9bac116ad5d330d7Js" 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
//   - Trigger target when run by a Trigger 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)
    {
        // your code goes here
        BFS.Audio.PlayWAV("C:\\Users\\Thurbo\\Documents\\Sounds\\Fluent and Xbox SFX\\Close Window.wav");
        return;
    }
}</pre><textarea id="code019da73df17e758c9bac116ad5d330d7" name="code019da73df17e758c9bac116ad5d330d7" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div><br/>
<br/>
This works as expected on every rule <i>except for the close window trigger</i> where instead of playing the sound once, it will instead spam the sound so often it slows the PC down to a crawl. You can watch the system tray get spammed with DisplayFusion sound icons and the sound repeat itself about 100 times per second, overlapping itself.<br/>
<br/>
I don't know anything about C# and coding in general. I have no idea why this is happening. Any help is much appreciated!
</div>
]]></content:encoded>
</item>
</channel>
</rss>