<?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: How to create macros that emulate keystrokes?</title>
<atom:link href="https://www.clipboardfusion.com/Discussions/RSS/?TopicID=30539153-9084-46dc-b0d4-80e1fb9e860a" rel="self" type="application/rss+xml" />
<link>https://www.clipboardfusion.com/Discussions/RSS/?TopicID=30539153-9084-46dc-b0d4-80e1fb9e860a</link>
<description>ClipboardFusion RSS: How to create macros that emulate keystrokes?</description>
<lastBuildDate>Mon, 18 May 2026 15:48:07 GMT</lastBuildDate>
<language>en</language>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<generator>https://www.clipboardfusion.com/Discussions/RSS/?TopicID=30539153-9084-46dc-b0d4-80e1fb9e860a</generator>
<item>
<title>RE: How to create macros that emulate keystrokes?</title>
<link>https://www.clipboardfusion.com/Discussions/View/how-to-create-macros-that-emulate-keystrokes/?ID=30539153-9084-46dc-b0d4-80e1fb9e860a#7</link>
<pubDate>Wed, 16 Jan 2019 16:47:07 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.clipboardfusion.com/Discussions/View/how-to-create-macros-that-emulate-keystrokes/?ID=30539153-9084-46dc-b0d4-80e1fb9e860a#7</guid>
<category>ClipboardFusion</category>
<description><![CDATA[@Frank: You can wrap the code in an if statement that checks the window title of the focused window, like this:
Code
Copy
Select All
if (BFS.Window.GetText(BFS.Window.GetFocusedWindow()).Contains("Notepad");
{
//send the tab key
BFS.Input.SendKeys("{TAB}");
//send the enter key
BFS.Input...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
@Frank: You can wrap the code in an if statement that checks the window title of the focused window, like this:<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="#code019e3bc5ed7e7423ac45c67be4b27ef9" 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('code019e3bc5ed7e7423ac45c67be4b27ef9Js'); 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="code019e3bc5ed7e7423ac45c67be4b27ef9Js" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%; min-height:75px;">if (BFS.Window.GetText(BFS.Window.GetFocusedWindow()).Contains("Notepad");
        {
            //send the tab key
            BFS.Input.SendKeys("{TAB}");

            //send the enter key
            BFS.Input.SendKeys("{ENTER}");
            BFS.Input.SendKeys("{ENTER}");
        }</pre><textarea id="code019e3bc5ed7e7423ac45c67be4b27ef9" name="code019e3bc5ed7e7423ac45c67be4b27ef9" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div>
</div>
]]></content:encoded>
</item>
<item>
<title>RE: How to create macros that emulate keystrokes?</title>
<link>https://www.clipboardfusion.com/Discussions/View/how-to-create-macros-that-emulate-keystrokes/?ID=30539153-9084-46dc-b0d4-80e1fb9e860a#6</link>
<pubDate>Mon, 14 Jan 2019 05:08:30 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.clipboardfusion.com/Discussions/View/how-to-create-macros-that-emulate-keystrokes/?ID=30539153-9084-46dc-b0d4-80e1fb9e860a#6</guid>
<category>ClipboardFusion</category>
<description><![CDATA[Hi, I want to do this too, but I want the hotkey to to send the keystrokes only when a certain window is active. How can I add that condition?]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Hi, I want to do this too, but I want the hotkey to to send the keystrokes only when a certain window is active. How can I add that condition?
</div>
]]></content:encoded>
</item>
<item>
<title>RE: How to create macros that emulate keystrokes?</title>
<link>https://www.clipboardfusion.com/Discussions/View/how-to-create-macros-that-emulate-keystrokes/?ID=30539153-9084-46dc-b0d4-80e1fb9e860a#5</link>
<pubDate>Tue, 31 Oct 2017 15:40:00 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.clipboardfusion.com/Discussions/View/how-to-create-macros-that-emulate-keystrokes/?ID=30539153-9084-46dc-b0d4-80e1fb9e860a#5</guid>
<category>ClipboardFusion</category>
<description><![CDATA[thank you. Ive been tinkering with it all day, and I got my full macro to work, with about a houndred lines of code. I also figured out the wait timer.]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
thank you. Ive been tinkering with it all day, and I got my full macro to work, with about a houndred lines of code. I also figured out the wait timer.
</div>
]]></content:encoded>
</item>
<item>
<title>RE: How to create macros that emulate keystrokes?</title>
<link>https://www.clipboardfusion.com/Discussions/View/how-to-create-macros-that-emulate-keystrokes/?ID=30539153-9084-46dc-b0d4-80e1fb9e860a#4</link>
<pubDate>Tue, 31 Oct 2017 14:19:12 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.clipboardfusion.com/Discussions/View/how-to-create-macros-that-emulate-keystrokes/?ID=30539153-9084-46dc-b0d4-80e1fb9e860a#4</guid>
<category>ClipboardFusion</category>
<description><![CDATA[I've put together another macro that should show you how to add a delay to your code. I hope it works for you!]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
I've put together another macro that should show you how to add a delay to your code. I hope it works for you!
</div>
]]></content:encoded>
</item>
<item>
<title>RE: How to create macros that emulate keystrokes?</title>
<link>https://www.clipboardfusion.com/Discussions/View/how-to-create-macros-that-emulate-keystrokes/?ID=30539153-9084-46dc-b0d4-80e1fb9e860a#3</link>
<pubDate>Mon, 30 Oct 2017 21:06:47 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.clipboardfusion.com/Discussions/View/how-to-create-macros-that-emulate-keystrokes/?ID=30539153-9084-46dc-b0d4-80e1fb9e860a#3</guid>
<category>ClipboardFusion</category>
<description><![CDATA[Thank you. This is pretty helpful. AS long as I can figure out what the correct name for all the keys are, I can make some interesting macros. How about adding a wait timer. Is there a code for that?]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Thank you. This is pretty helpful. AS long as I can figure out what the correct name for all the keys are, I can make some interesting macros. How about adding a wait timer. Is there a code for that?
</div>
]]></content:encoded>
</item>
<item>
<title>RE: How to create macros that emulate keystrokes?</title>
<link>https://www.clipboardfusion.com/Discussions/View/how-to-create-macros-that-emulate-keystrokes/?ID=30539153-9084-46dc-b0d4-80e1fb9e860a#2</link>
<pubDate>Mon, 30 Oct 2017 17:51:03 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.clipboardfusion.com/Discussions/View/how-to-create-macros-that-emulate-keystrokes/?ID=30539153-9084-46dc-b0d4-80e1fb9e860a#2</guid>
<category>ClipboardFusion</category>
<description><![CDATA[I've attached a Macro that should work for you. Here's how to get it into ClipboardFusion:
Download the file attached to this post
Open the ClipboardFusion Settings window
On the "Macros" tab, click the "Import" button
Select the file you downloaded in the first step
In the window that pops ...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
I've attached a Macro that should work for you. Here's how to get it into ClipboardFusion:<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/>
I hope this works for you!
</div>
]]></content:encoded>
</item>
<item>
<title>How to create macros that emulate keystrokes?</title>
<link>https://www.clipboardfusion.com/Discussions/View/how-to-create-macros-that-emulate-keystrokes/?ID=30539153-9084-46dc-b0d4-80e1fb9e860a</link>
<pubDate>Mon, 30 Oct 2017 13:34:48 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.clipboardfusion.com/Discussions/View/how-to-create-macros-that-emulate-keystrokes/?ID=30539153-9084-46dc-b0d4-80e1fb9e860a</guid>
<category>ClipboardFusion</category>
<description><![CDATA[As a person who has no coding experience, and does not know C# at all, but have used ArsClip in the past, I would like some input on how I could make some macros work like I want.
I work with some systems that need to perform a lot of selections in different dropdowns and such, on webpages, and ...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
As a person who has no coding experience, and does not know C# at all, but have used ArsClip in the past, I would like some input on how I could make some macros work like I want.<br/>
<br/>
I work with some systems that need to perform a lot of selections in different dropdowns and such, on webpages, and in my current program, I can simply tell the macro to run key strokes by writing [TAB REPEAT=1][ENTER REPEAT=2], this will make it Tab to the next selection and hit enter.<br/>
<br/>
I know you have the BFS.Input.SendKeys function in C#, and I am sure it can do the same thing, but how does this work?
</div>
]]></content:encoded>
</item>
</channel>
</rss>