<?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: Macro to append text  - adding the clipboard data twice</title>
<atom:link href="https://www.clipboardfusion.com/Discussions/RSS/?TopicID=5e2ee90f-abc1-4141-906f-1f38c56b1f65" rel="self" type="application/rss+xml" />
<link>https://www.clipboardfusion.com/Discussions/RSS/?TopicID=5e2ee90f-abc1-4141-906f-1f38c56b1f65</link>
<description>ClipboardFusion RSS: Macro to append text  - adding the clipboard data twice</description>
<lastBuildDate>Mon, 18 May 2026 14:59:53 GMT</lastBuildDate>
<language>en</language>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<generator>https://www.clipboardfusion.com/Discussions/RSS/?TopicID=5e2ee90f-abc1-4141-906f-1f38c56b1f65</generator>
<item>
<title>RE: Macro to append text  - adding the clipboard data twice</title>
<link>https://www.clipboardfusion.com/Discussions/View/macro-to-append-text-adding-the-clipboard-data-twice/?ID=5e2ee90f-abc1-4141-906f-1f38c56b1f65#4</link>
<pubDate>Fri, 27 Oct 2017 08:33:22 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.clipboardfusion.com/Discussions/View/macro-to-append-text-adding-the-clipboard-data-twice/?ID=5e2ee90f-abc1-4141-906f-1f38c56b1f65#4</guid>
<category>ClipboardFusion</category>
<description><![CDATA[You are quite welcome . Here's how to get it into ClipboardFusion:
Download the file attached to this post
Open the ClipboardFusion Settings window
On the "Macros" tab, click the "Import" button
Select the file you downloaded in the first step
In the window that pops up, you can review the c...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
You are quite welcome <img src="https://www.clipboardfusion.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" />. Here's how to get it into ClipboardFusion:<br/>
<br/>
<ul class="ListBullet">
<li>Download the file attached to this post</li>
<li>Open the ClipboardFusion Settings window</li>
<li>On the "Macros" tab, click the "Import" button</li>
<li>Select the file you downloaded in the first step</li>
<li>In the window that pops up, you can review the code and assign the Macro a HotKey</li>
<li>Click OK to close the Macro Edit window, then OK again to save and apply your changes</li></ul>
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Macro to append text  - adding the clipboard data twice</title>
<link>https://www.clipboardfusion.com/Discussions/View/macro-to-append-text-adding-the-clipboard-data-twice/?ID=5e2ee90f-abc1-4141-906f-1f38c56b1f65#3</link>
<pubDate>Fri, 27 Oct 2017 00:32:13 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.clipboardfusion.com/Discussions/View/macro-to-append-text-adding-the-clipboard-data-twice/?ID=5e2ee90f-abc1-4141-906f-1f38c56b1f65#3</guid>
<category>ClipboardFusion</category>
<description><![CDATA[That works great!  Thank you.  Yes you can make it importable.
ClipboardFusion works so much better for me than the other app I was using.  I really appreciate your hard work and support on these apps.]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
That works great!  Thank you.  Yes you can make it importable.  <br/>
<br/>
ClipboardFusion works so much better for me than the other app I was using.  I really appreciate your hard work and support on these apps.
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Macro to append text  - adding the clipboard data twice</title>
<link>https://www.clipboardfusion.com/Discussions/View/macro-to-append-text-adding-the-clipboard-data-twice/?ID=5e2ee90f-abc1-4141-906f-1f38c56b1f65#2</link>
<pubDate>Thu, 26 Oct 2017 23:09:11 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.clipboardfusion.com/Discussions/View/macro-to-append-text-adding-the-clipboard-data-twice/?ID=5e2ee90f-abc1-4141-906f-1f38c56b1f65#2</guid>
<category>ClipboardFusion</category>
<description><![CDATA[Hi Steve,
I just edited your macro so it will be easier for you to understand. Here is the macro. Kindly let me know if you wish for me to post it as a importable file
Code
Copy
Select All
using System;
public static class ClipboardFusionHelper
{
public static string ProcessText(string te...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Hi Steve,<br/>
<br/>
I just edited your macro so it will be easier for you to understand. Here is the macro. Kindly let me know if you wish for me to post it as a importable file <img src="https://www.clipboardfusion.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/>
<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="#code019e3b99c4fa73d99dfb8d39b7b984ab" 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('code019e3b99c4fa73d99dfb8d39b7b984abJs'); 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="code019e3b99c4fa73d99dfb8d39b7b984abJs" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%; min-height:75px;">using System;

public static class ClipboardFusionHelper
{
    public static string ProcessText(string text)
    {
        BFS.Clipboard.CopyText(out text);

        //!text.EndsWith(",") This will serve as a condition that if the "," already exist at the end of the text with TASK 
        //then do not put another so you don't get something like this -&gt; TASK123,,

        //Remove && !text.EndsWith(",") from below IF statement, if you don't want the check :)

        if (text.Contains("TASK") && !text.EndsWith(","))
        {   
            text += ",";
        }

        BFS.Clipboard.PasteText(text);
        return null;
    }
}</pre><textarea id="code019e3b99c4fa73d99dfb8d39b7b984ab" name="code019e3b99c4fa73d99dfb8d39b7b984ab" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div>
</div>
]]></content:encoded>
</item>
<item>
<title>Macro to append text  - adding the clipboard data twice</title>
<link>https://www.clipboardfusion.com/Discussions/View/macro-to-append-text-adding-the-clipboard-data-twice/?ID=5e2ee90f-abc1-4141-906f-1f38c56b1f65</link>
<pubDate>Thu, 26 Oct 2017 20:51:39 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.clipboardfusion.com/Discussions/View/macro-to-append-text-adding-the-clipboard-data-twice/?ID=5e2ee90f-abc1-4141-906f-1f38c56b1f65</guid>
<category>ClipboardFusion</category>
<description><![CDATA[I am trying to create a macro where if it sees the word TASK in the data it appends a comma and space.  The output should look something like this:  TASK0122933,  where my original string was just TASK0122933
When I run the macro I get the data twice when the data is pasted and copied with the a...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
I am trying to create a macro where if it sees the word TASK in the data it appends a comma and space.  The output should look something like this:  TASK0122933,  where my original string was just TASK0122933<br/>
<br/>
When I run the macro I get the data twice when the data is pasted and copied with the appended comma and space.  TASK0122933TASK0122933,,  I don't know much C# so any help would be appreciated.  I have a Trigger setup to only paste the data this way in OneNote and then it is running the premade macro that I have modified for replacing and auto-paste.  That's what I want but with the correct results obviously.<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="#code019e3b99c50373f0abec5de9c3cdb490" 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('code019e3b99c50373f0abec5de9c3cdb490Js'); 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="code019e3b99c50373f0abec5de9c3cdb490Js" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%; min-height:75px;">using System;

public static class ClipboardFusionHelper
{
public static string ProcessText(string text)
{
BFS.Clipboard.CopyText(out text);
if (text.Contains("TASK"))
{
;
}

BFS.Clipboard.PasteText(text + (", "));
return null;
}
}</pre><textarea id="code019e3b99c50373f0abec5de9c3cdb490" name="code019e3b99c50373f0abec5de9c3cdb490" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div>
</div>
]]></content:encoded>
</item>
</channel>
</rss>