<?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: c# find words in clipboard and output</title>
<atom:link href="https://www.clipboardfusion.com/Discussions/RSS/?TopicID=81569710-2a2a-4208-ad55-11c504561c56" rel="self" type="application/rss+xml" />
<link>https://www.clipboardfusion.com/Discussions/RSS/?TopicID=81569710-2a2a-4208-ad55-11c504561c56</link>
<description>ClipboardFusion RSS: c# find words in clipboard and output</description>
<lastBuildDate>Mon, 29 Jun 2026 03:25:35 GMT</lastBuildDate>
<language>en</language>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<generator>https://www.clipboardfusion.com/Discussions/RSS/?TopicID=81569710-2a2a-4208-ad55-11c504561c56</generator>
<item>
<title>RE: c# find words in clipboard and output</title>
<link>https://www.clipboardfusion.com/Discussions/View/c-find-words-in-clipboard-and-output/?ID=81569710-2a2a-4208-ad55-11c504561c56#3</link>
<pubDate>Tue, 25 Jan 2022 15:30:51 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.clipboardfusion.com/Discussions/View/c-find-words-in-clipboard-and-output/?ID=81569710-2a2a-4208-ad55-11c504561c56#3</guid>
<category>ClipboardFusion</category>
<description><![CDATA[Sorry I never got a notification that this was responded to, thanks a ton for helping out!]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Sorry I never got a notification that this was responded to, thanks a ton for helping out!
</div>
]]></content:encoded>
</item>
<item>
<title>RE: c# find words in clipboard and output</title>
<link>https://www.clipboardfusion.com/Discussions/View/c-find-words-in-clipboard-and-output/?ID=81569710-2a2a-4208-ad55-11c504561c56#2</link>
<pubDate>Thu, 16 Dec 2021 00:03:38 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.clipboardfusion.com/Discussions/View/c-find-words-in-clipboard-and-output/?ID=81569710-2a2a-4208-ad55-11c504561c56#2</guid>
<category>ClipboardFusion</category>
<description><![CDATA[I've put together a Macro that should work for you using your example code above . When running a macro with a hotkey, the text parameter is set to the contents of the current Clipboard, so there's no need to grab the text from the Clipboard again. It's also the same with the returned value. The ...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
I've put together a Macro that should work for you using your example code above <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=":)" />. When running a macro with a hotkey, the text parameter is set to the contents of the current Clipboard, so there's no need to grab the text from the Clipboard again. It's also the same with the returned value. The Clipboard gets set to that returned value when the Macro is finished running, unless it's null. You might have also forgot a "using" statement to get those Linq functions to work.<br/>
<br/>
I hope this helps! Here's how to get the Macro into ClipboardFusion:<br/>
<br/>
<ul class="ListBullet">
<li>Download the file attached to this email</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>c# find words in clipboard and output</title>
<link>https://www.clipboardfusion.com/Discussions/View/c-find-words-in-clipboard-and-output/?ID=81569710-2a2a-4208-ad55-11c504561c56</link>
<pubDate>Mon, 13 Dec 2021 17:43:31 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.clipboardfusion.com/Discussions/View/c-find-words-in-clipboard-and-output/?ID=81569710-2a2a-4208-ad55-11c504561c56</guid>
<category>ClipboardFusion</category>
<description><![CDATA[I'm trying to make a macro so that each of these words that would be located in my clipboard would be put into a list with spaces and commas, then output back to the clipboard. I'm not sure I need the first and last lines.  I cant seem to get it to run.  What am I missing?
string Text = Clipboar...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
I'm trying to make a macro so that each of these words that would be located in my clipboard would be put into a list with spaces and commas, then output back to the clipboard. I'm not sure I need the first and last lines.  I cant seem to get it to run.  What am I missing?<br/>
<br/>
string Text = Clipboard.GetText(); <br/>
List&lt;string&gt; words = new List&lt;string&gt; { "blue", "green", "chair" }; <br/>
Join IEnumerable&lt;string&gt; foundWords = words.Where(i =&gt; Text.Contains(i)); <br/>
string result = string.Join(", ", foundWords); <br/>
Clipboard.SetText(result);<br/>
<br/>
if the clipboard only contained one or all three thats what the clipboard would be replaced with. I would be adding a ton of words to search and would like them output in the order they are searched for, without duplicates.
</div>
]]></content:encoded>
</item>
</channel>
</rss>