<?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: Help w/ a Macro to Paste ... Tab ... Paste ... Clear Clipboard Please.</title>
<atom:link href="https://www.clipboardfusion.com/Discussions/RSS/?TopicID=eb69b4d6-9043-4e6d-829b-4bfa2c3dc090" rel="self" type="application/rss+xml" />
<link>https://www.clipboardfusion.com/Discussions/RSS/?TopicID=eb69b4d6-9043-4e6d-829b-4bfa2c3dc090</link>
<description>ClipboardFusion RSS: Help w/ a Macro to Paste ... Tab ... Paste ... Clear Clipboard Please.</description>
<lastBuildDate>Tue, 09 Jun 2026 22:03:06 GMT</lastBuildDate>
<language>en</language>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<generator>https://www.clipboardfusion.com/Discussions/RSS/?TopicID=eb69b4d6-9043-4e6d-829b-4bfa2c3dc090</generator>
<item>
<title>RE: Help w/ a Macro to Paste ... Tab ... Paste ... Clear Clipboard Please.</title>
<link>https://www.clipboardfusion.com/Discussions/View/help-w-a-macro-to-paste-tab-paste-clear-clipboard-please/?ID=eb69b4d6-9043-4e6d-829b-4bfa2c3dc090#4</link>
<pubDate>Tue, 29 May 2018 20:23:27 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.clipboardfusion.com/Discussions/View/help-w-a-macro-to-paste-tab-paste-clear-clipboard-please/?ID=eb69b4d6-9043-4e6d-829b-4bfa2c3dc090#4</guid>
<category>ClipboardFusion</category>
<description><![CDATA[You're exactly right!
The Windows Clipboard has a lot of limitations, one of which being only storing one thing at a time on the Clipboard. ClipboardFusion tries to get around this by watching and storing most of the contents so that you can use it at a later time.
As for your problem, there is...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
You're exactly right!<br/>
<br/>
The Windows Clipboard has a lot of limitations, one of which being only storing one thing at a time on the Clipboard. ClipboardFusion tries to get around this by watching and storing most of the contents so that you can use it at a later time.<br/>
<br/>
As for your problem, there isn't actually a clear function built into the lists because we felt it was a little too dangerous, but you can remove one item at a time. If you throw it in a loop, you should be able to clear all the items. Here's some example code:<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="#code019eae6922c57693a3e3c3e8e7bc7a1f" 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('code019eae6922c57693a3e3c3e8e7bc7a1fJs'); 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="code019eae6922c57693a3e3c3e8e7bc7a1fJs" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%; min-height:75px;">// Warning! This code will clear the Clipboard History if run
while(BFS.ClipboardFusion.GetHistoryItemCount() &gt; 0)
        BFS.ClipboardFusion.RemoveHistoryItem(0);</pre><textarea id="code019eae6922c57693a3e3c3e8e7bc7a1f" name="code019eae6922c57693a3e3c3e8e7bc7a1f" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div><br/>
<br/>
I hope this helps!
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Help w/ a Macro to Paste ... Tab ... Paste ... Clear Clipboard Please.</title>
<link>https://www.clipboardfusion.com/Discussions/View/help-w-a-macro-to-paste-tab-paste-clear-clipboard-please/?ID=eb69b4d6-9043-4e6d-829b-4bfa2c3dc090#3</link>
<pubDate>Fri, 25 May 2018 19:22:44 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.clipboardfusion.com/Discussions/View/help-w-a-macro-to-paste-tab-paste-clear-clipboard-please/?ID=eb69b4d6-9043-4e6d-829b-4bfa2c3dc090#3</guid>
<category>ClipboardFusion</category>
<description><![CDATA[Thank you so much!  I do have a related question though.  I expected the clear clipboard statement ( BFS.Clipboard.Clear(); ) to clear the Clipboard Manager of its entries.  It did not.  Is the Clipboard Manager a separate process not showing the contents of the clipboard, but instead the content...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Thank you so much!  I do have a related question though.  I expected the clear clipboard statement ( BFS.Clipboard.Clear(); ) to clear the Clipboard Manager of its entries.  It did not.  Is the Clipboard Manager a separate process not showing the contents of the clipboard, but instead the content that CliboardFusion has worked with?
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Help w/ a Macro to Paste ... Tab ... Paste ... Clear Clipboard Please.</title>
<link>https://www.clipboardfusion.com/Discussions/View/help-w-a-macro-to-paste-tab-paste-clear-clipboard-please/?ID=eb69b4d6-9043-4e6d-829b-4bfa2c3dc090#2</link>
<pubDate>Thu, 24 May 2018 13:41:47 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.clipboardfusion.com/Discussions/View/help-w-a-macro-to-paste-tab-paste-clear-clipboard-please/?ID=eb69b4d6-9043-4e6d-829b-4bfa2c3dc090#2</guid>
<category>ClipboardFusion</category>
<description><![CDATA[I put together some code that should work for you, based on the code you provided. It looks like you were really close to getting it working! The only mistake you made was that the "return" statement actually makes the function exit, so not all of your code was run.
Here's what I put together:
...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
I put together some code that should work for you, based on the code you provided. It looks like you were really close to getting it working! The only mistake you made was that the "return" statement actually makes the function exit, so not all of your code was run.<br/>
<br/>
Here's what I put together:<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="#code019eae6922d0743d8245dc9be6229edc" 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('code019eae6922d0743d8245dc9be6229edcJs'); 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="code019eae6922d0743d8245dc9be6229edcJs" 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)
    {
        // Tell ClipboardFusion to ignore any changes to the Clipboard.
        // Depending on your settings, pasting text could modify the history
        BFS.ClipboardFusion.PauseClipboardListener();
    
        // Get the first item from the Clipboard History
        text = BFS.ClipboardFusion.GetHistoryText(0);
    
        // Paste the text to the active window
        BFS.Clipboard.PasteText(text);
    
        // Press the "Tab" button
        BFS.Input.SendKeys("{TAB}");
        
        // Get the second item from the Clipboard History
        text = BFS.ClipboardFusion.GetHistoryText(1);
           
        // paste the text to the active window
        BFS.Clipboard.PasteText(text);
            
        // Clear the Clipboard
        BFS.Clipboard.Clear();
    
        // Tell ClipboardFusion to start watching the Clipboard again
        BFS.ClipboardFusion.ResumeClipboardListener();
    
        // Tell ClipboardFusion to ignore the return from this Macro        
        return null;
    }
}</pre><textarea id="code019eae6922d0743d8245dc9be6229edc" name="code019eae6922d0743d8245dc9be6229edc" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div><br/>
<br/>
I hope this works for you!
</div>
]]></content:encoded>
</item>
<item>
<title>Help w/ a Macro to Paste ... Tab ... Paste ... Clear Clipboard Please.</title>
<link>https://www.clipboardfusion.com/Discussions/View/help-w-a-macro-to-paste-tab-paste-clear-clipboard-please/?ID=eb69b4d6-9043-4e6d-829b-4bfa2c3dc090</link>
<pubDate>Wed, 23 May 2018 19:03:08 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.clipboardfusion.com/Discussions/View/help-w-a-macro-to-paste-tab-paste-clear-clipboard-please/?ID=eb69b4d6-9043-4e6d-829b-4bfa2c3dc090</guid>
<category>ClipboardFusion</category>
<description><![CDATA[Hi, I'm trying to create a macro to help me complete an HTML form w the content from the clipboard's history; it should executes in the following sequence:  (1) PASTE latest item from Clipboard, (2) TAB, (3) PASTE second latest item from Clipboard and (4) CLEAR clipboard contents.  I'm not experi...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Hi, I'm trying to create a macro to help me complete an HTML form w the content from the clipboard's history; it should executes in the following sequence:  (1) PASTE latest item from Clipboard, (2) TAB, (3) PASTE second latest item from Clipboard and (4) CLEAR clipboard contents.  I'm not experienced w/ C# ... The following is my best shot so far, and needs some debugging assistance:<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="#code019eae6922d5769888d10cdbd052ea62" 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('code019eae6922d5769888d10cdbd052ea62Js'); 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="code019eae6922d5769888d10cdbd052ea62Js" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%; min-height:75px;">public static class ClipboardFusionHelper
{
    public static string ProcessText(string text)
    {
        // your code goes here

            text = BFS.ClipboardFusion.GetHistoryText(0);
            return text;

            BFS.Input.SendKeys("{TAB}");

        string textx;
            textx = BFS.ClipboardFusion.GetHistoryText(1);
            return textx;

//        BFS.Clipboard.Clear();
//        return null;

    }
    
}</pre><textarea id="code019eae6922d5769888d10cdbd052ea62" name="code019eae6922d5769888d10cdbd052ea62" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div><br/>
<br/>
Thanks for your time and effort.
</div>
]]></content:encoded>
</item>
</channel>
</rss>