<?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 - Set Selected Index?</title>
<atom:link href="https://www.clipboardfusion.com/Discussions/RSS/?TopicID=41144096-d839-4875-ba3e-457291586700" rel="self" type="application/rss+xml" />
<link>https://www.clipboardfusion.com/Discussions/RSS/?TopicID=41144096-d839-4875-ba3e-457291586700</link>
<description>ClipboardFusion RSS: Macro - Set Selected Index?</description>
<lastBuildDate>Mon, 18 May 2026 15:45:11 GMT</lastBuildDate>
<language>en</language>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<generator>https://www.clipboardfusion.com/Discussions/RSS/?TopicID=41144096-d839-4875-ba3e-457291586700</generator>
<item>
<title>RE: Macro - Set Selected Index?</title>
<link>https://www.clipboardfusion.com/Discussions/View/macro-set-selected-index/?ID=41144096-d839-4875-ba3e-457291586700#8</link>
<pubDate>Mon, 18 Jun 2018 01:30:07 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.clipboardfusion.com/Discussions/View/macro-set-selected-index/?ID=41144096-d839-4875-ba3e-457291586700#8</guid>
<category>ClipboardFusion</category>
<description><![CDATA[Great idea @Jeff Mason!
Thanks for elegant implementation, @Thomas Malloch - very useful.
To use "Incrementing PowerPaste" macro effectively, I need nicely arranged history: all items I intend to paste in desired order should follow strictly one after another in the history. Should we have a wa...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Great idea @Jeff Mason! <br/>
Thanks for elegant implementation, @Thomas Malloch - very useful.<br/>
<br/>
To use "Incrementing PowerPaste" macro effectively, I need nicely arranged history: all items I intend to paste in desired order should follow strictly one after another in the history. Should we have a way to move items in history so that to re-order them? Sure, I can be disciplined and pay attention to how I copy things in the first place, but hey... we are not perfect.<br/>
<br/>
Maybe allow users to re-arrange items in the History by drag-and-drop, or some other UI operation?
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Macro - Set Selected Index?</title>
<link>https://www.clipboardfusion.com/Discussions/View/macro-set-selected-index/?ID=41144096-d839-4875-ba3e-457291586700#7</link>
<pubDate>Tue, 12 Jun 2018 19:13:59 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.clipboardfusion.com/Discussions/View/macro-set-selected-index/?ID=41144096-d839-4875-ba3e-457291586700#7</guid>
<category>ClipboardFusion</category>
<description><![CDATA[I liked your idea of combining the Macros into one function so much I made a version as well! I attached the code to this post if you, or anyone else is interested.
Thanks!]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
I liked your idea of combining the Macros into one function so much I made a version as well! I attached the code to this post if you, or anyone else is interested.<br/>
<br/>
Thanks!
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Macro - Set Selected Index?</title>
<link>https://www.clipboardfusion.com/Discussions/View/macro-set-selected-index/?ID=41144096-d839-4875-ba3e-457291586700#6</link>
<pubDate>Tue, 05 Jun 2018 08:24:51 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.clipboardfusion.com/Discussions/View/macro-set-selected-index/?ID=41144096-d839-4875-ba3e-457291586700#6</guid>
<category>ClipboardFusion</category>
<description><![CDATA[Thanks Thomas. Your code works perfectly!]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Thanks Thomas. Your code works perfectly!
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Macro - Set Selected Index?</title>
<link>https://www.clipboardfusion.com/Discussions/View/macro-set-selected-index/?ID=41144096-d839-4875-ba3e-457291586700#5</link>
<pubDate>Mon, 04 Jun 2018 13:48:14 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.clipboardfusion.com/Discussions/View/macro-set-selected-index/?ID=41144096-d839-4875-ba3e-457291586700#5</guid>
<category>ClipboardFusion</category>
<description><![CDATA[Nothing like that exists in our functions yet, but I've added your request to our list, and we'll let you know when we implement it! In the meantime, I threw something together that should work for you. Here's the code:
Code
Copy
Select All
private static bool IsClipboardManagerOpen()
{
// ...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Nothing like that exists in our functions yet, but I've added your request to our list, and we'll let you know when we implement it! In the meantime, I threw something together that should work for you. Here's the 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="#code019e3bc33b9e76a39889e2085a1282b5" 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('code019e3bc33b9e76a39889e2085a1282b5Js'); 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="code019e3bc33b9e76a39889e2085a1282b5Js" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%; min-height:75px;">private static bool IsClipboardManagerOpen()
    {
        // Loop through all visible windows and look for a window with the right title that is run by the ClipboardFusion process
        foreach(IntPtr window in BFS.Window.GetVisibleWindowHandles())
        {
            if(BFS.Window.GetText(window).IndexOf("ClipboardFusion", StringComparison.OrdinalIgnoreCase) != 0)
                continue;
            
            if(BFS.Application.GetMainFileByWindow(window).IndexOf("clipboardfusion.exe", StringComparison.OrdinalIgnoreCase) == -1)
                continue;
                
            return true;
        }
        
        // If we got this far, that means we didn't find anything
        return false;
    }</pre><textarea id="code019e3bc33b9e76a39889e2085a1282b5" name="code019e3bc33b9e76a39889e2085a1282b5" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div><br/>
<br/>
Thanks!
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Macro - Set Selected Index?</title>
<link>https://www.clipboardfusion.com/Discussions/View/macro-set-selected-index/?ID=41144096-d839-4875-ba3e-457291586700#4</link>
<pubDate>Thu, 31 May 2018 08:49:07 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.clipboardfusion.com/Discussions/View/macro-set-selected-index/?ID=41144096-d839-4875-ba3e-457291586700#4</guid>
<category>ClipboardFusion</category>
<description><![CDATA[Any idea when BFS.Window.IsVisible might become available to Clipboard Fusion?
I'm close to getting your scripts to work as a single macro (and thus only one hotkey) by trying to detect if the Clipboard Manager is popped up.
The idea being that in my use case I always initiate the macro from th...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Any idea when <b>BFS.Window.IsVisible</b> might become available to Clipboard Fusion?<br/>
<br/>
I'm close to getting your scripts to work as a <span style="text-decoration:underline;">single</span> macro (and thus only <span style="text-decoration:underline;">one</span> hotkey) by trying to <b>detect if the Clipboard Manager is popped up</b>. <br/>
<br/>
The idea being that in my use case I always initiate the macro from the manager so if I know that's true (ie it's popped up) then the macro should set up the settings index before pasting. If it detects that the manager is not popped up, then it simply increments the index and pastes, etc.<br/>
<br/>
Unfortunately IsVisible is not available yet, and GetFocusedWindow seems to ignore Clipboard Manager (quite reasonably, since 99% of macros probably want to know what the focused window was <i>before</i> the Clipboard Manager popped up!).
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Macro - Set Selected Index?</title>
<link>https://www.clipboardfusion.com/Discussions/View/macro-set-selected-index/?ID=41144096-d839-4875-ba3e-457291586700#3</link>
<pubDate>Thu, 31 May 2018 07:46:33 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.clipboardfusion.com/Discussions/View/macro-set-selected-index/?ID=41144096-d839-4875-ba3e-457291586700#3</guid>
<category>ClipboardFusion</category>
<description><![CDATA[Thanks for this Thomas - very useful!]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Thanks for this Thomas - very useful!  <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" />
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Macro - Set Selected Index?</title>
<link>https://www.clipboardfusion.com/Discussions/View/macro-set-selected-index/?ID=41144096-d839-4875-ba3e-457291586700#2</link>
<pubDate>Wed, 30 May 2018 14:40:04 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.clipboardfusion.com/Discussions/View/macro-set-selected-index/?ID=41144096-d839-4875-ba3e-457291586700#2</guid>
<category>ClipboardFusion</category>
<description><![CDATA[There currently isn't any way to set the Clipboard Manager selected index, but I've added this to our feature request list and we'll be sure to let you know if/when we're able to implement it in a future version! In the meantime, I put together two Macros that should do the trick.
The first one,...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
<p>There currently isn't any way to set the Clipboard Manager selected index, but I've added this to our feature request list and we'll be sure to let you know if/when we're able to implement it in a future version! In the meantime, I put together two Macros that should do the trick.</p>

<p>The first one, "Set Increment Index and Paste", will save the currently selected index and paste the item you had selected in the Clipboard History. Then you use the second Macro, "Increment Index and Paste" to keep pasting the next Clipboard History item in the list.</p>

<p>Here's how to get them into ClipboardFusion:</p>

<p></p>
<ul class="ListBullet"><li>Download the files attached to this email and repeat the next steps for each file</li><li>Open the ClipboardFusion Settings window</li><li>On the "Macros" tab, click the "Import" button</li><li>Select a 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><p>
</p>

I hope this works for you!
</div>
]]></content:encoded>
</item>
<item>
<title>Macro - Set Selected Index?</title>
<link>https://www.clipboardfusion.com/Discussions/View/macro-set-selected-index/?ID=41144096-d839-4875-ba3e-457291586700</link>
<pubDate>Mon, 28 May 2018 06:14:44 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.clipboardfusion.com/Discussions/View/macro-set-selected-index/?ID=41144096-d839-4875-ba3e-457291586700</guid>
<category>ClipboardFusion</category>
<description><![CDATA[Is it possible (via a macro) to tell ClipboardFusion which item to select by specifying an index?
I'm hoping to replicate some functionality in the clipboard manager app I've been using previously, where you could select an item in the clipboard history and then each time you clicked paste it wo...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Is it possible (via a macro) to tell ClipboardFusion which item to select <b>by specifying an index</b>?<br/>
<br/>
I'm hoping to replicate some functionality in the clipboard manager app I've been using previously, where you could select an item in the clipboard history and then each time you clicked paste it would move to the next item in the history.<br/>
<br/>
The idea being that you'd copy a number of values from a source document (using separate copy commands to create separate records in the clipboard history), eg<br/>
<br/>
Joe Bloggs<br/>
123 My Street<br/>
My Town<br/>
My Country<br/>
<br/>
And then, when invoking the macro using a hotkey, the first invocation would paste 'Joe Bloggs' <b>and change the selected index to current index + 1</b>. The next invocation would paste '123 My Street', the next would paste 'My Town', etc.
</div>
]]></content:encoded>
</item>
</channel>
</rss>