<?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 determine, if a scripted function was started by hotkey</title>
<atom:link href="https://www.displayfusion.com/Discussions/RSS/?TopicID=0193bb83-d2e5-7043-b5a1-65740bb55d76" rel="self" type="application/rss+xml" />
<link>https://www.displayfusion.com/Discussions/RSS/?TopicID=0193bb83-d2e5-7043-b5a1-65740bb55d76</link>
<description>DisplayFusion RSS: How to determine, if a scripted function was started by hotkey</description>
<lastBuildDate>Thu, 21 May 2026 15:04:26 GMT</lastBuildDate>
<language>en</language>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<generator>https://www.displayfusion.com/Discussions/RSS/?TopicID=0193bb83-d2e5-7043-b5a1-65740bb55d76</generator>
<item>
<title>RE: How to determine, if a scripted function was started by hotkey</title>
<link>https://www.displayfusion.com/Discussions/View/how-to-determine-if-a-scripted-function-was-started-by-hotkey/?ID=0193bb83-d2e5-7043-b5a1-65740bb55d76#2</link>
<pubDate>Thu, 12 Dec 2024 19:31:36 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/how-to-determine-if-a-scripted-function-was-started-by-hotkey/?ID=0193bb83-d2e5-7043-b5a1-65740bb55d76#2</guid>
<category>DisplayFusion</category>
<description><![CDATA[Not at the moment but we do have this on our feature request list, so I've added your vote to it.
Thanks!]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Not at the moment but we do have this on our feature request list, so I've added your vote to it.<br/>
<br/>
Thanks!
</div>
]]></content:encoded>
</item>
<item>
<title>How to determine, if a scripted function was started by hotkey</title>
<link>https://www.displayfusion.com/Discussions/View/how-to-determine-if-a-scripted-function-was-started-by-hotkey/?ID=0193bb83-d2e5-7043-b5a1-65740bb55d76</link>
<pubDate>Thu, 12 Dec 2024 15:36:39 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/how-to-determine-if-a-scripted-function-was-started-by-hotkey/?ID=0193bb83-d2e5-7043-b5a1-65740bb55d76</guid>
<category>DisplayFusion</category>
<description><![CDATA[I have a scripted function which can be started by a trigger (Window created) or by hotkey.
For hotkey I use 'CTR-ALT-WIN-Y'.
In the function I want know, if it was started by hotkey. I do that using the function
Code
Copy
Select All
BFS.Input.IsKeyDown("17;18;89;91")
That worked for a lon...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
I have a scripted function which can be started by a trigger (Window created) or by hotkey. <br/>
For hotkey I use 'CTR-ALT-WIN-Y'.<br/>
<br/>
In the function I want know, if it was started by hotkey. I do that using the function<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="#code019e4b1101a1774eb38d31d6adfa145a" class="ClipboardCopyControl"><img src="https://www.displayfusion.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('code019e4b1101a1774eb38d31d6adfa145aJs'); return false;"><img src="https://www.displayfusion.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="code019e4b1101a1774eb38d31d6adfa145aJs" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%; min-height:75px;">BFS.Input.IsKeyDown("17;18;89;91")</pre><textarea id="code019e4b1101a1774eb38d31d6adfa145a" name="code019e4b1101a1774eb38d31d6adfa145a" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div><br/>
That worked for a long time, but after upgrading to DisplayFusion 11 it stopped working. I found out that this is due to releasing the 'Y'-Key too fast. Before version 11 the scripted function either started so fast that it catched the hotkey before releasing the 'Y'. Or the release of the key was not noticed fast enough so that it worked.<br/>
I have a workaround for now. But is there a better way to determine, if the scripted function was started by hotkey or by another trigger?<br/>
<br/>
Regards,<br/>
Christian
</div>
]]></content:encoded>
</item>
</channel>
</rss>