<?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>DisplayFusion RSS: How to execute a keyboard shortcut inside a scripted function?</title>
<atom:link href="https://www.displayfusion.com/Discussions/RSS/?TopicID=fd6f3180-a3f5-46da-81f3-bf4030892164" rel="self" type="application/rss+xml" />
<link>https://www.displayfusion.com/Discussions/RSS/?TopicID=fd6f3180-a3f5-46da-81f3-bf4030892164</link>
<description>DisplayFusion RSS: How to execute a keyboard shortcut inside a scripted function?</description>
<lastBuildDate>Sun, 12 Apr 2026 01:56:24 GMT</lastBuildDate>
<language>en</language>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<generator>https://www.displayfusion.com/Discussions/RSS/?TopicID=fd6f3180-a3f5-46da-81f3-bf4030892164</generator>
<item>
<title>RE: How to execute a keyboard shortcut inside a scripted function?</title>
<link>https://www.displayfusion.com/Discussions/View/how-to-execute-a-keyboard-shortcut-inside-a-scripted-function/?ID=fd6f3180-a3f5-46da-81f3-bf4030892164#7</link>
<pubDate>Mon, 28 Aug 2023 14:16:56 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/how-to-execute-a-keyboard-shortcut-inside-a-scripted-function/?ID=fd6f3180-a3f5-46da-81f3-bf4030892164#7</guid>
<category>DisplayFusion</category>
<description><![CDATA[This key code should do it for you: BFS.Input.SendKeys("^({WIN}({VK_39}))");]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
This key code should do it for you: BFS.Input.SendKeys("^({WIN}({VK_39}))");
</div>
]]></content:encoded>
</item>
<item>
<title>RE: How to execute a keyboard shortcut inside a scripted function?</title>
<link>https://www.displayfusion.com/Discussions/View/how-to-execute-a-keyboard-shortcut-inside-a-scripted-function/?ID=fd6f3180-a3f5-46da-81f3-bf4030892164#6</link>
<pubDate>Sun, 27 Aug 2023 23:17:52 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/how-to-execute-a-keyboard-shortcut-inside-a-scripted-function/?ID=fd6f3180-a3f5-46da-81f3-bf4030892164#6</guid>
<category>DisplayFusion</category>
<description><![CDATA[is there updated instructions for this?
I don't get useful prompt or suggestions for control, WIN or right arrow.  Looking to find a way to send ctrl+win+right
Quote:
You can actually just use the code editor to build the scan codes. When you do "BFS.Input.SendKeys(" it will prompt you to ente...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
is there updated instructions for this?<br/>
I don't get useful prompt or suggestions for control, WIN or right arrow.  Looking to find a way to send ctrl+win+right <br/>
<br/>
<div class="BackGrey"><div class="Text"><div><b>Quote:</b></div>You can actually just use the code editor to build the scan codes. When you do "BFS.Input.SendKeys(" it will prompt you to enter the keystrokes and automatically convert them to the right scan codes for SendKeys <img src="https://www.displayfusion.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></div>
</div>
]]></content:encoded>
</item>
<item>
<title>RE: How to execute a keyboard shortcut inside a scripted function?</title>
<link>https://www.displayfusion.com/Discussions/View/how-to-execute-a-keyboard-shortcut-inside-a-scripted-function/?ID=fd6f3180-a3f5-46da-81f3-bf4030892164#5</link>
<pubDate>Thu, 05 Jan 2017 23:20:03 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/how-to-execute-a-keyboard-shortcut-inside-a-scripted-function/?ID=fd6f3180-a3f5-46da-81f3-bf4030892164#5</guid>
<category>DisplayFusion</category>
<description><![CDATA[Perfect, thanks!]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Perfect, thanks!
</div>
]]></content:encoded>
</item>
<item>
<title>RE: How to execute a keyboard shortcut inside a scripted function?</title>
<link>https://www.displayfusion.com/Discussions/View/how-to-execute-a-keyboard-shortcut-inside-a-scripted-function/?ID=fd6f3180-a3f5-46da-81f3-bf4030892164#4</link>
<pubDate>Thu, 05 Jan 2017 20:50:13 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/how-to-execute-a-keyboard-shortcut-inside-a-scripted-function/?ID=fd6f3180-a3f5-46da-81f3-bf4030892164#4</guid>
<category>DisplayFusion</category>
<description><![CDATA[You can actually just use the code editor to build the scan codes. When you do "BFS.Input.SendKeys(" it will prompt you to enter the keystrokes and automatically convert them to the right scan codes for SendKeys]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
You can actually just use the code editor to build the scan codes. When you do "BFS.Input.SendKeys(" it will prompt you to enter the keystrokes and automatically convert them to the right scan codes for SendKeys <img src="https://www.displayfusion.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: How to execute a keyboard shortcut inside a scripted function?</title>
<link>https://www.displayfusion.com/Discussions/View/how-to-execute-a-keyboard-shortcut-inside-a-scripted-function/?ID=fd6f3180-a3f5-46da-81f3-bf4030892164#3</link>
<pubDate>Wed, 04 Jan 2017 14:49:42 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/how-to-execute-a-keyboard-shortcut-inside-a-scripted-function/?ID=fd6f3180-a3f5-46da-81f3-bf4030892164#3</guid>
<category>DisplayFusion</category>
<description><![CDATA[Quote:
This should do the trick:
Code
Copy
Select All
BFS.Input.SendKeys("^({VK_71})");
Thanks Keith. Can you provide a link to the list of sendkeys codes (i.e., what the code is for the various letters and other keyboard keys)?]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
<div class="BackGrey"><div class="Text"><div><b>Quote:</b></div>This should do the trick:<br/>
<div id="" 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="#code019d7f678760715f86ca9ac36617e87c" class="ClipboardCopyControl"><img src="https://www.displayfusion.com/MediaCommon/SVGs/FontAwesome/clone.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;vertical-align:middle !important;width:auto;max-width:16px;height:16px;" /><span class="Text">Copy</span></a></div><div class="TableTitleButton"><a href="#" onclick="bfs.util.codeEditorSelectAll('code019d7f678760715f86ca9ac36617e87cJs'); return false;"><img src="https://www.displayfusion.com/MediaCommon/SVGs/FontAwesome/square-check.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;vertical-align:middle !important;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="code019d7f678760715f86ca9ac36617e87cJs" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%; min-height:75px;">BFS.Input.SendKeys("^({VK_71})");</pre><textarea id="code019d7f678760715f86ca9ac36617e87c" name="code019d7f678760715f86ca9ac36617e87c" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div></div></div><br/>
Thanks Keith. Can you provide a link to the list of sendkeys codes (i.e., what the code is for the various letters and other keyboard keys)?
</div>
]]></content:encoded>
</item>
<item>
<title>RE: How to execute a keyboard shortcut inside a scripted function?</title>
<link>https://www.displayfusion.com/Discussions/View/how-to-execute-a-keyboard-shortcut-inside-a-scripted-function/?ID=fd6f3180-a3f5-46da-81f3-bf4030892164#2</link>
<pubDate>Wed, 04 Jan 2017 14:33:15 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/how-to-execute-a-keyboard-shortcut-inside-a-scripted-function/?ID=fd6f3180-a3f5-46da-81f3-bf4030892164#2</guid>
<category>DisplayFusion</category>
<description><![CDATA[This should do the trick:
Code
Copy
Select All
BFS.Input.SendKeys("^({VK_71})");]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
This should do the trick:<br/>
<div id="" 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="#code019d7f67876b75d8a3c261e9a696ea30" class="ClipboardCopyControl"><img src="https://www.displayfusion.com/MediaCommon/SVGs/FontAwesome/clone.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;vertical-align:middle !important;width:auto;max-width:16px;height:16px;" /><span class="Text">Copy</span></a></div><div class="TableTitleButton"><a href="#" onclick="bfs.util.codeEditorSelectAll('code019d7f67876b75d8a3c261e9a696ea30Js'); return false;"><img src="https://www.displayfusion.com/MediaCommon/SVGs/FontAwesome/square-check.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;vertical-align:middle !important;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="code019d7f67876b75d8a3c261e9a696ea30Js" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%; min-height:75px;">BFS.Input.SendKeys("^({VK_71})");</pre><textarea id="code019d7f67876b75d8a3c261e9a696ea30" name="code019d7f67876b75d8a3c261e9a696ea30" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div>
</div>
]]></content:encoded>
</item>
<item>
<title>How to execute a keyboard shortcut inside a scripted function?</title>
<link>https://www.displayfusion.com/Discussions/View/how-to-execute-a-keyboard-shortcut-inside-a-scripted-function/?ID=fd6f3180-a3f5-46da-81f3-bf4030892164</link>
<pubDate>Mon, 02 Jan 2017 16:10:17 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/how-to-execute-a-keyboard-shortcut-inside-a-scripted-function/?ID=fd6f3180-a3f5-46da-81f3-bf4030892164</guid>
<category>DisplayFusion</category>
<description><![CDATA[I downloaded function "Load Monitor Profile and Launch Application" and it works great. But I'd like to execute another app's hotkey after loading a monitor profile and before launching an application. The hotkey is to switch to the virtual desktop I want the app to launch on.
How do I execute a...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
I downloaded function "Load Monitor Profile and Launch Application" and it works great. But I'd like to execute another app's hotkey after loading a monitor profile and before launching an application. The hotkey is to switch to the virtual desktop I want the app to launch on.<br/>
<br/>
How do I execute a hotkey command (e.g., CTRL + G) inside a scripted function?
</div>
]]></content:encoded>
</item>
</channel>
</rss>