<?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 make links from text</title>
<atom:link href="https://www.clipboardfusion.com/Discussions/RSS/?TopicID=d49760e5-a517-41ec-908a-35684346d802" rel="self" type="application/rss+xml" />
<link>https://www.clipboardfusion.com/Discussions/RSS/?TopicID=d49760e5-a517-41ec-908a-35684346d802</link>
<description>ClipboardFusion RSS: macro to make links from text</description>
<lastBuildDate>Fri, 15 May 2026 19:37:17 GMT</lastBuildDate>
<language>en</language>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<generator>https://www.clipboardfusion.com/Discussions/RSS/?TopicID=d49760e5-a517-41ec-908a-35684346d802</generator>
<item>
<title>RE: macro to make links from text</title>
<link>https://www.clipboardfusion.com/Discussions/View/macro-to-make-links-from-text/?ID=d49760e5-a517-41ec-908a-35684346d802#2</link>
<pubDate>Mon, 25 Jan 2021 14:59:31 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.clipboardfusion.com/Discussions/View/macro-to-make-links-from-text/?ID=d49760e5-a517-41ec-908a-35684346d802#2</guid>
<category>ClipboardFusion</category>
<description><![CDATA[I was able to put together a Macro that should work for you. You should be able to copy a url at some point, then highlight some text. Once you hit the hotkey, the macro will automatically turn the highlighted text into a link with your previously copied url. Here's how to get it set up:
Downloa...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
I was able to put together a Macro that should work for you. You should be able to copy a url at some point, then highlight some text. Once you hit the hotkey, the macro will automatically turn the highlighted text into a link with your previously copied url. Here's how to get it set up:<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>
<br/>
Thanks!
</div>
]]></content:encoded>
</item>
<item>
<title>macro to make links from text</title>
<link>https://www.clipboardfusion.com/Discussions/View/macro-to-make-links-from-text/?ID=d49760e5-a517-41ec-908a-35684346d802</link>
<pubDate>Wed, 06 Jan 2021 08:39:14 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.clipboardfusion.com/Discussions/View/macro-to-make-links-from-text/?ID=d49760e5-a517-41ec-908a-35684346d802</guid>
<category>ClipboardFusion</category>
<description><![CDATA[I apologise if this is a stupid question, but has anyone written a macro to wrap the selected text in html to make it into a link?
I have done this myself in a couple of scripting languages for other programs - autohotkey on windows and keyboard maestro on the mac, but I am not a real programmer...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
I apologise if this is a stupid question, but has anyone written a macro to wrap the selected text in html to make it into a link? <br/>
<br/>
I have done this myself in a couple of scripting languages for other programs - autohotkey on windows and keyboard maestro on the mac, but I am not a real programmer and C# defeats me. <br/>
<br/>
The algorithm is simple enough: <br/>
<ul class="ListBullet"><li>take the selected text and store it for a moment</li>
<li>search the clipboard history backwards for the first Url</li> <br/>
<li>prefix the text selection with '&lt;a href="{foundurl}&gt;"'</li>
<li>add the {selectedText} and then "&lt;/a&gt;"</li>
<li>Paste the whole lot back, replacing the selected text</li></ul>
<br/>
What would this look like in C#? I can't believe I am the first person to want to do this.
</div>
]]></content:encoded>
</item>
</channel>
</rss>