<?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: Too many hotkeys?? Macro for showing popup menu.... [Code inside]</title>
<atom:link href="https://www.clipboardfusion.com/Discussions/RSS/?TopicID=c50c7119-36db-453e-aac5-09bb2ed02e72" rel="self" type="application/rss+xml" />
<link>https://www.clipboardfusion.com/Discussions/RSS/?TopicID=c50c7119-36db-453e-aac5-09bb2ed02e72</link>
<description>ClipboardFusion RSS: Too many hotkeys?? Macro for showing popup menu.... [Code inside]</description>
<lastBuildDate>Wed, 13 May 2026 02:14:05 GMT</lastBuildDate>
<language>en</language>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<generator>https://www.clipboardfusion.com/Discussions/RSS/?TopicID=c50c7119-36db-453e-aac5-09bb2ed02e72</generator>
<item>
<title>RE: Too many hotkeys?? Macro for showing popup menu.... [Code inside]</title>
<link>https://www.clipboardfusion.com/Discussions/View/too-many-hotkeys-macro-for-showing-popup-menu-code-inside/?ID=c50c7119-36db-453e-aac5-09bb2ed02e72#9</link>
<pubDate>Tue, 20 Dec 2016 18:22:55 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.clipboardfusion.com/Discussions/View/too-many-hotkeys-macro-for-showing-popup-menu-code-inside/?ID=c50c7119-36db-453e-aac5-09bb2ed02e72#9</guid>
<category>ClipboardFusion</category>
<description><![CDATA[Quote:
The macros are stored in the registry: HKEY_CURRENT_USER\SOFTWARE\Binary Fortress Software\ClipboardFusion\Macros
Huh... interesting.  I would never have thought to look there.
Well cool.  I'm pretty sure that is accessible to me so I'll see what I can come up with.
Thanks for the info!]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
<div class="BackGrey"><div class="Text"><div><b>Quote:</b></div>The macros are stored in the registry: HKEY_CURRENT_USER\SOFTWARE\Binary Fortress Software\ClipboardFusion\Macros</div></div><br/>
<br/>
Huh... interesting.  I would never have thought to look there.<br/>
<br/>
Well cool.  I'm pretty sure that is accessible to me so I'll see what I can come up with.<br/>
<br/>
Thanks for the info!
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Too many hotkeys?? Macro for showing popup menu.... [Code inside]</title>
<link>https://www.clipboardfusion.com/Discussions/View/too-many-hotkeys-macro-for-showing-popup-menu-code-inside/?ID=c50c7119-36db-453e-aac5-09bb2ed02e72#8</link>
<pubDate>Tue, 20 Dec 2016 18:12:09 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.clipboardfusion.com/Discussions/View/too-many-hotkeys-macro-for-showing-popup-menu-code-inside/?ID=c50c7119-36db-453e-aac5-09bb2ed02e72#8</guid>
<category>ClipboardFusion</category>
<description><![CDATA[Glad to hear you like the new betas!
The macros are stored in the registry: HKEY_CURRENT_USER\SOFTWARE\Binary Fortress Software\ClipboardFusion\Macros]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Glad to hear you like the new betas!<br/>
<br/>
The macros are stored in the registry: HKEY_CURRENT_USER\SOFTWARE\Binary Fortress Software\ClipboardFusion\Macros
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Too many hotkeys?? Macro for showing popup menu.... [Code inside]</title>
<link>https://www.clipboardfusion.com/Discussions/View/too-many-hotkeys-macro-for-showing-popup-menu-code-inside/?ID=c50c7119-36db-453e-aac5-09bb2ed02e72#7</link>
<pubDate>Thu, 15 Dec 2016 16:55:13 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.clipboardfusion.com/Discussions/View/too-many-hotkeys-macro-for-showing-popup-menu-code-inside/?ID=c50c7119-36db-453e-aac5-09bb2ed02e72#7</guid>
<category>ClipboardFusion</category>
<description><![CDATA[Just out of curiosity.. Where are macros stored? Are they only stored on the ClipboardFusion sync servers?  I was searching everywhere on my computer for a local repo to no avail.  I don't even have an account linked to clipboard fusion so if it is just the sync servers it must be on there with s...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Just out of curiosity.. Where are macros stored? Are they only stored on the ClipboardFusion sync servers?  I was searching everywhere on my computer for a local repo to no avail.  I don't even have an account linked to clipboard fusion so if it is just the sync servers it must be on there with some random GUID linked to my install?<br/>
<br/>
Anyway, I was hoping to augment this macro to load all of my installed macros or maybe based on a config (or admin menu if possible).  I am missing a starting point though:  The ability to enumerate installed macros.  I was poking around in the build in functions and didn't find anything like this.  Worst case scenario, I suppose, I could connect to a local middleware that scrapes macro names from my account online if I have to link it <img src="https://www.clipboardfusion.com/MediaCommon/SVGs/FontAwesome/face-smile-wink.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/>
Off topic: Thank you soooooo much for all of the new features in the new beta!  This can almost assuredly become my new full time clipboard manager (with a few improvements that might be on the way I guess).  If it all pans out in the release version of 5.x i'll definitely buy a few more copies.
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Too many hotkeys?? Macro for showing popup menu.... [Code inside]</title>
<link>https://www.clipboardfusion.com/Discussions/View/too-many-hotkeys-macro-for-showing-popup-menu-code-inside/?ID=c50c7119-36db-453e-aac5-09bb2ed02e72#6</link>
<pubDate>Thu, 06 Oct 2016 18:34:13 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.clipboardfusion.com/Discussions/View/too-many-hotkeys-macro-for-showing-popup-menu-code-inside/?ID=c50c7119-36db-453e-aac5-09bb2ed02e72#6</guid>
<category>ClipboardFusion</category>
<description><![CDATA[Updated in the repository, thanks!]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Updated in the repository, thanks!
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Too many hotkeys?? Macro for showing popup menu.... [Code inside]</title>
<link>https://www.clipboardfusion.com/Discussions/View/too-many-hotkeys-macro-for-showing-popup-menu-code-inside/?ID=c50c7119-36db-453e-aac5-09bb2ed02e72#5</link>
<pubDate>Wed, 05 Oct 2016 18:59:14 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.clipboardfusion.com/Discussions/View/too-many-hotkeys-macro-for-showing-popup-menu-code-inside/?ID=c50c7119-36db-453e-aac5-09bb2ed02e72#5</guid>
<category>ClipboardFusion</category>
<description><![CDATA[OK, changed the macro.
Here's the new version.
- added hotkeys
- checks for image or text, and disables/enables popup menu entries
- added description
Code
Copy
Select All
using System;
using System.Drawing;
using System.Windows.Forms;
/*************************************************...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
OK, changed the macro.<br/>
Here's the new version.<br/>
- added hotkeys<br/>
- checks for image or text, and disables/enables popup menu entries<br/>
- added description<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="#code019e1f1cdcc270e88520e4ad86a3f00b" 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('code019e1f1cdcc270e88520e4ad86a3f00bJs'); 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="code019e1f1cdcc270e88520e4ad86a3f00bJs" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%; min-height:75px;">using System;
using System.Drawing;
using System.Windows.Forms;

/****************************************************************************************************************
**This Macro will show a pop-up dialog with a list of Macros that you can run.
**Just replace the Macro names in the "MenuEntries" variable at the top of the script, with the names of
**your Macros.
**eg:{{ "PaleGreen", "Black", "Copy and Append", "Copy and &Append selected text", "cb-content" }},
**- "PaleGreen" is the background color
**- "Black" is the foreground-(text) color
**- "Copy and Append" is the macro name as it appears in your macro list
**- "Copy and &Append selected text" is the text you will see in the popup, here the "A" is set as hotkey
**- "cb-content" can be "image", "text", "all". It defines if the entry is clickable or not. If the macro needs
**an image in the clipboard, the entry is disabled if there's only text on the cb.
**
**Color names can be found here:
**http://samples.msdn.microsoft.com/workshop/samples/author/dhtml/colors/ColorTable.htm
**
**Add an ampersand (&) at the fourth parameter to get a hotkey for the entry.
**  eg:{{ "Pink", "Maroon", "--- Cancel ---", "--- &Cancel ---" }},
**{{ "PaleGreen", "Black", "Copy and Append", "Copy and &Append selected text" }},
**
**If you want an entry to cancel the action please use:
**{{ "Background color", "Foreground color", "--- Cancel ---", "--- &Cancel ---" }},
**
** You can also click outside the popup or press ESC to cancel/close.
**
*****************************************************************************************************************/

public static class ClipboardFusionHelper
{
public static string ProcessText(string text)
{

// These are all of the macros from the "Macros" list.
// See description above.
string[, ,] MenuEntries = 
{
//{{ "Background-Color", "Foreground-Color", "Macro-Name", "Menu entry text", "image text all" }}
{{ "Pink", "Maroon", "--- Cancel ---", "--- Cancel ---", "all" }},
{{ "Khaki", "Black", "Remove Extra White Spaces and Trim", "&1 Remove Extra White Spaces and Trim", "text" }},
{{ "Khaki", "Black", "Replace special chars with spaces, Trim", "&2 Replace special chars with spaces then Trim", "text" }},
{{ "BurlyWood", "Black", "Auto-Type Clipboard Text", "Auto-&Type Clipboard Text", "text" }},
{{ "BurlyWood", "Black", "Show History Drop-Down List, Modify", "Show &History Drop-Down List, and modify value", "text" }},
{{ "PaleGreen", "Black", "Copy and Append", "Copy and &Append selected text", "text" }},
{{ "Aquamarine", "Black", "Decode Base64-Encoded Text (UTF-8)", "Decode Base64-Encoded Text (UTF-8)", "text" }},
{{ "Aquamarine", "Black", "Decode URL-Encoded Text", "Decode URL-Encoded Text", "text" }},
{{ "Aquamarine", "Black", "Encode Text (UTF-8) using Base64-Encoding", "Encode Text (UTF-8) using Base64-Encoding", "text" }},
{{ "Aquamarine", "Black", "Encode Text using URL-Encoding", "Encode Text using URL-Encoding", "text" }},
{{ "Darkseagreen", "Black", "Search For Copied Text using Google.de", "Search for text in clipboard using &Google.de", "text" }},
{{ "Darkseagreen", "Black", "URL Grabber", "URL Grabber", "text" }},
{{ "White", "Black", "Save Copied Image to Disk", "Save &image in clipboard to disk", "image" }},
{{ "Pink", "Maroon", "--- Cancel ---", "--- Cancel ---", "all" }}
};

// Create a new ContextMenuStrip to show the items
using(ContextMenuStrip menu = new ContextMenuStrip())
{
// Don't show the padding on the left of the menu
menu.ShowCheckMargin = false;
menu.ShowImageMargin = false;

string cbContent = "";
if ( BFS.Clipboard.HasText() ) cbContent = "text";
if ( Clipboard.ContainsImage() ) cbContent = "image";

// Add items to the menu, and use custom function when the user clicks on the items
for ( int i = 0; i &lt; MenuEntries.GetLength(0); i++ ) {
ToolStripMenuItem item = new ToolStripMenuItem(MenuEntries[i, 0, 3]);
item.Click += MenuItem_Click;
item.BackColor = Color.FromName( MenuEntries[i, 0, 0]);
item.ForeColor = Color.FromName( MenuEntries[i, 0, 1]);
item.Tag = MenuEntries[i, 0, 2];
if ( (MenuEntries[i, 0, 4] == cbContent) || (MenuEntries[i, 0, 4] == "all") || (cbContent == "") )
item.Enabled = true;
else
item.Enabled = false;
menu.Items.Add(item);
}

// Finally show the popup menu
menu.Show(new Point(BFS.Input.GetMousePositionX(), BFS.Input.GetMousePositionY()), ToolStripDropDownDirection.AboveRight);

// Set focus to the menu
menu.BringToFront();
menu.Focus();
BFS.Window.Focus(menu.Handle);
BFS.Window.SetAlwaysOnTop(menu.Handle, true);

// Wait for the menu to close
while(menu.Visible)
{
Application.DoEvents();
}
}
return null;
}

/****************************************************************************************************************
**This function will get the text of the clicked item and try to run it as a ClipboardFusion Macro.
*****************************************************************************************************************/
private static void MenuItem_Click(object sender, EventArgs e)
{
ToolStripItem item = sender as ToolStripItem;
if (item == null) return;
// Get the macro name
string macroName = item.Tag as String;
if ( (macroName == "--- Cancel ---") || (macroName == "") ) return;

string text = BFS.Clipboard.GetText();
if (text == null) text = "";
// Return values
string rText = "";
string rError = "";
// Run the macro
BFS.ClipboardFusion.RunMacro(macroName, text, out rText, out rError);
// Any errors?
if ( rError != "" ) {
BFS.Dialog.ShowMessageError("An error has occurred:\n"+rError);
} else {
BFS.Clipboard.SetText(rText);
}
}
}</pre><textarea id="code019e1f1cdcc270e88520e4ad86a3f00b" name="code019e1f1cdcc270e88520e4ad86a3f00b" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div>
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Too many hotkeys?? Macro for showing popup menu.... [Code inside]</title>
<link>https://www.clipboardfusion.com/Discussions/View/too-many-hotkeys-macro-for-showing-popup-menu-code-inside/?ID=c50c7119-36db-453e-aac5-09bb2ed02e72#4</link>
<pubDate>Wed, 05 Oct 2016 17:53:56 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.clipboardfusion.com/Discussions/View/too-many-hotkeys-macro-for-showing-popup-menu-code-inside/?ID=c50c7119-36db-453e-aac5-09bb2ed02e72#4</guid>
<category>ClipboardFusion</category>
<description><![CDATA[We do actually have an open feature request for that as well, so I've added your vote to it
Thanks!]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
We do actually have an open feature request for that as well, so I've added your vote to it <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/>
Thanks!
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Too many hotkeys?? Macro for showing popup menu.... [Code inside]</title>
<link>https://www.clipboardfusion.com/Discussions/View/too-many-hotkeys-macro-for-showing-popup-menu-code-inside/?ID=c50c7119-36db-453e-aac5-09bb2ed02e72#3</link>
<pubDate>Mon, 03 Oct 2016 19:45:58 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.clipboardfusion.com/Discussions/View/too-many-hotkeys-macro-for-showing-popup-menu-code-inside/?ID=c50c7119-36db-453e-aac5-09bb2ed02e72#3</guid>
<category>ClipboardFusion</category>
<description><![CDATA[I don't know why there's no popup for the macros. I think they're the best feature of CF.]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
I don't know why there's no popup for the macros. I think they're the best feature of CF.  <img src="https://www.clipboardfusion.com/MediaCommon/SVGs/FontAwesome/face-smile-wink.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: Too many hotkeys?? Macro for showing popup menu.... [Code inside]</title>
<link>https://www.clipboardfusion.com/Discussions/View/too-many-hotkeys-macro-for-showing-popup-menu-code-inside/?ID=c50c7119-36db-453e-aac5-09bb2ed02e72#2</link>
<pubDate>Mon, 03 Oct 2016 19:18:52 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.clipboardfusion.com/Discussions/View/too-many-hotkeys-macro-for-showing-popup-menu-code-inside/?ID=c50c7119-36db-453e-aac5-09bb2ed02e72#2</guid>
<category>ClipboardFusion</category>
<description><![CDATA[Awesome! We'll test this out here and add it to the repository. Thanks for sharing that]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Awesome! We'll test this out here and add it to the repository. Thanks for sharing that <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>Too many hotkeys?? Macro for showing popup menu.... [Code inside]</title>
<link>https://www.clipboardfusion.com/Discussions/View/too-many-hotkeys-macro-for-showing-popup-menu-code-inside/?ID=c50c7119-36db-453e-aac5-09bb2ed02e72</link>
<pubDate>Mon, 03 Oct 2016 10:28:12 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.clipboardfusion.com/Discussions/View/too-many-hotkeys-macro-for-showing-popup-menu-code-inside/?ID=c50c7119-36db-453e-aac5-09bb2ed02e72</guid>
<category>ClipboardFusion</category>
<description><![CDATA[Hello,
I had some problems with all those hotkeys for my macros. So I created a macro that shows a popup menu with a defined list of macros. Just download the attached "ShowCustomFunctionList.cfmacro" and import it. File Attachment see post #5 below.
---
After import edit the macro and fill it...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Hello,<br/>
I had some problems with all those hotkeys for my macros. So I created a macro that shows a popup menu with a defined list of macros. Just download the attached "ShowCustomFunctionList.cfmacro" and import it. File Attachment see post <a href="https://www.clipboardfusion.com/Discussions/View/too-many-hotkeys-macro-for-showing-popup-menu-code-inside/?ID=c50c7119-36db-453e-aac5-09bb2ed02e72#5" target="_blank" rel="nofollow"><b>#5</b></a> below.<br/>
<br/>
---<br/>
<br/>
After import edit the macro and fill it with your macro-names. Hints are in the code <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/>
Have fun. <br/>
DS<br/>
PS: Maybe this could be added to the macro downloads, or pinned thread?
</div>
]]></content:encoded>
</item>
</channel>
</rss>