<?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>ClipboardFusion RSS: Play sound file after &quot;Copy Text to Local Pinned Slot 0x&quot;</title>
<atom:link href="https://www.clipboardfusion.com/Discussions/RSS/?TopicID=0192e6af-3748-757a-a9c1-bbff20059c17" rel="self" type="application/rss+xml" />
<link>https://www.clipboardfusion.com/Discussions/RSS/?TopicID=0192e6af-3748-757a-a9c1-bbff20059c17</link>
<description>ClipboardFusion RSS: Play sound file after &quot;Copy Text to Local Pinned Slot 0x&quot;</description>
<lastBuildDate>Tue, 19 May 2026 08:00:40 GMT</lastBuildDate>
<language>en</language>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<generator>https://www.clipboardfusion.com/Discussions/RSS/?TopicID=0192e6af-3748-757a-a9c1-bbff20059c17</generator>
<item>
<title>RE: Play sound file after &quot;Copy Text to Local Pinned Slot 0x&quot;</title>
<link>https://www.clipboardfusion.com/Discussions/View/play-sound-file-after-copy-text-to-local-pinned-slot-0x/?ID=0192e6af-3748-757a-a9c1-bbff20059c17#4</link>
<pubDate>Fri, 08 Nov 2024 17:57:58 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.clipboardfusion.com/Discussions/View/play-sound-file-after-copy-text-to-local-pinned-slot-0x/?ID=0192e6af-3748-757a-a9c1-bbff20059c17#4</guid>
<category>ClipboardFusion</category>
<description><![CDATA[Works properly.
Thank you for the assistance.]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Works properly.<br/>
<br/>
Thank you for the assistance.
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Play sound file after &quot;Copy Text to Local Pinned Slot 0x&quot;</title>
<link>https://www.clipboardfusion.com/Discussions/View/play-sound-file-after-copy-text-to-local-pinned-slot-0x/?ID=0192e6af-3748-757a-a9c1-bbff20059c17#3</link>
<pubDate>Fri, 01 Nov 2024 13:00:24 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.clipboardfusion.com/Discussions/View/play-sound-file-after-copy-text-to-local-pinned-slot-0x/?ID=0192e6af-3748-757a-a9c1-bbff20059c17#3</guid>
<category>ClipboardFusion</category>
<description><![CDATA[I just tested it with this code and it worked:
Code
Copy
Select All
using System;
using System.Collections.Generic;
// The 'text' parameter will contain the text from the:
//   - Current Clipboard when run by HotKey
//   - History Item when run from the History Menu
// The returned strin...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
I just tested it with this code and it worked:<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="#code019e3f4052b0775d9cf1cadccb51bfb2" class="ClipboardCopyControl"><img src="https://www.clipboardfusion.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('code019e3f4052b0775d9cf1cadccb51bfb2Js'); return false;"><img src="https://www.clipboardfusion.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="code019e3f4052b0775d9cf1cadccb51bfb2Js" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%; min-height:75px;">using System;
using System.Collections.Generic;

// The 'text' parameter will contain the text from the:
//   - Current Clipboard when run by HotKey
//   - History Item when run from the History Menu
// The returned string will be:
//   - Placed directly on the Clipboard
//   - Ignored by ClipboardFusion if it is 'null'
public static class ClipboardFusionHelper
{
    public static string ProcessText(string text)
    {
        int localPinnedItemCount = BFS.ClipboardFusion.GetLocalPinnedItemCount();
        if (localPinnedItemCount &lt; 24)
        {
            for (int i = localPinnedItemCount; i &lt; 24; i++)
            {
                BFS.ClipboardFusion.AddLocalPinnedText("--placeholder--");
            }
        }    
        BFS.ClipboardFusion.SetLocalPinnedText(0, BFS.Clipboard.CopyText());
        BFS.Audio.PlayFile("C:\\Users\\test\\Downloads\\sample-3s.mp3");
        return null;
    }
}</pre><textarea id="code019e3f4052b0775d9cf1cadccb51bfb2" name="code019e3f4052b0775d9cf1cadccb51bfb2" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div>
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Play sound file after &quot;Copy Text to Local Pinned Slot 0x&quot;</title>
<link>https://www.clipboardfusion.com/Discussions/View/play-sound-file-after-copy-text-to-local-pinned-slot-0x/?ID=0192e6af-3748-757a-a9c1-bbff20059c17#2</link>
<pubDate>Fri, 01 Nov 2024 10:05:35 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.clipboardfusion.com/Discussions/View/play-sound-file-after-copy-text-to-local-pinned-slot-0x/?ID=0192e6af-3748-757a-a9c1-bbff20059c17#2</guid>
<category>ClipboardFusion</category>
<description><![CDATA[Just throught I should post for anyone else having a simmilar problem.
PS. Still can't find a workable code to just play a mp3 audio file when the Macro is succesful.
Got a workaround for this by triggering one of Windows system audio and changing the sound on Windows setting to something more ...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Just throught I should post for anyone else having a simmilar problem.<br/>
PS. Still can't find a workable code to just play a mp3 audio file when the Macro is succesful.<br/>
<br/>
Got a workaround for this by triggering one of Windows system audio and changing the sound on Windows setting to something more pleasant to the ears:<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="#code019e3f4052c373e58a78b3be13e2c597" class="ClipboardCopyControl"><img src="https://www.clipboardfusion.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('code019e3f4052c373e58a78b3be13e2c597Js'); return false;"><img src="https://www.clipboardfusion.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="code019e3f4052c373e58a78b3be13e2c597Js" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%; min-height:75px;">System.Media.SystemSounds.Asterisk.Play();</pre><textarea id="code019e3f4052c373e58a78b3be13e2c597" name="code019e3f4052c373e58a78b3be13e2c597" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div><br/>
<br/>
Thus the Macro code becomes:<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="#code019e3f4052c57024a6ae1fcbab0d6708" class="ClipboardCopyControl"><img src="https://www.clipboardfusion.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('code019e3f4052c57024a6ae1fcbab0d6708Js'); return false;"><img src="https://www.clipboardfusion.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="code019e3f4052c57024a6ae1fcbab0d6708Js" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%; min-height:75px;">using System;
using System.Collections.Generic;

// The 'text' parameter will contain the text from the:
//   - Current Clipboard when run by HotKey
//   - History Item when run from the History Menu
// The returned string will be:
//   - Placed directly on the Clipboard
//   - Ignored by ClipboardFusion if it is 'null'
public static class ClipboardFusionHelper
{
    public static string ProcessText(string text)
    {
        int localPinnedItemCount = BFS.ClipboardFusion.GetLocalPinnedItemCount();
        if (localPinnedItemCount &lt; 24)
        {
            for (int i = localPinnedItemCount; i &lt; 24; i++)
            {
                BFS.ClipboardFusion.AddLocalPinnedText("--placeholder--");
            }
        }    
        BFS.ClipboardFusion.SetLocalPinnedText(0, BFS.Clipboard.CopyText());
        System.Media.SystemSounds.Asterisk.Play();
        return null;
    }
}</pre><textarea id="code019e3f4052c57024a6ae1fcbab0d6708" name="code019e3f4052c57024a6ae1fcbab0d6708" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div>
</div>
]]></content:encoded>
</item>
<item>
<title>Play sound file after &quot;Copy Text to Local Pinned Slot 0x&quot;</title>
<link>https://www.clipboardfusion.com/Discussions/View/play-sound-file-after-copy-text-to-local-pinned-slot-0x/?ID=0192e6af-3748-757a-a9c1-bbff20059c17</link>
<pubDate>Fri, 01 Nov 2024 07:44:56 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.clipboardfusion.com/Discussions/View/play-sound-file-after-copy-text-to-local-pinned-slot-0x/?ID=0192e6af-3748-757a-a9c1-bbff20059c17</guid>
<category>ClipboardFusion</category>
<description><![CDATA[Could anyone help me with this?
I couldn't quite get the following Macro script to pay a sound on successful copy to Clipboardfusion:
NOTE:  I have tried the play sound on clipboard change option in settings, but it often bugged out when I copy a lot of items rapidly and keep playing the sound ...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Could anyone help me with this?<br/>
I couldn't quite get the following Macro script to pay a sound on successful copy to Clipboardfusion:<br/>
<br/>
NOTE:  I have tried the play sound on clipboard change option in settings, but it often bugged out when I copy a lot of items rapidly and keep playing the sound repeatedly until I forcefully close the Clipboardfusion app.  Also, the option plays sound on other clipboard activities instead of only when the Macro is complete (which is what I really needed).<br/>
<br/>
Macro:<br/>
"Copy Text to Local Pinned Slot 01"<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="#code019e3f4052cf72c9baa4e889db40e528" class="ClipboardCopyControl"><img src="https://www.clipboardfusion.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('code019e3f4052cf72c9baa4e889db40e528Js'); return false;"><img src="https://www.clipboardfusion.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="code019e3f4052cf72c9baa4e889db40e528Js" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%; min-height:75px;">using System;
using System.Collections.Generic;

// The 'text' parameter will contain the text from the:
//   - Current Clipboard when run by HotKey
//   - History Item when run from the History Menu
// The returned string will be:
//   - Placed directly on the Clipboard
//   - Ignored by ClipboardFusion if it is 'null'
public static class ClipboardFusionHelper
{
    public static string ProcessText(string text)
    {
        int localPinnedItemCount = BFS.ClipboardFusion.GetLocalPinnedItemCount();
        if (localPinnedItemCount &lt; 24)
        {
            for (int i = localPinnedItemCount; i &lt; 24; i++)
            {
                BFS.ClipboardFusion.AddLocalPinnedText("--placeholder--");
            }
        }    
        BFS.ClipboardFusion.SetLocalPinnedText(0, BFS.Clipboard.CopyText());
        return null;
    }
}</pre><textarea id="code019e3f4052cf72c9baa4e889db40e528" name="code019e3f4052cf72c9baa4e889db40e528" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div>
</div>
]]></content:encoded>
</item>
</channel>
</rss>