<?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: Focus window trigger cooldown and/or enable &amp; disable triggers with scripted functions</title>
<atom:link href="https://www.displayfusion.com/Discussions/RSS/?TopicID=018bab7b-54eb-7550-a96d-91c49611dc52" rel="self" type="application/rss+xml" />
<link>https://www.displayfusion.com/Discussions/RSS/?TopicID=018bab7b-54eb-7550-a96d-91c49611dc52</link>
<description>DisplayFusion RSS: Focus window trigger cooldown and/or enable &amp; disable triggers with scripted functions</description>
<lastBuildDate>Mon, 25 May 2026 08:41:28 GMT</lastBuildDate>
<language>en</language>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<generator>https://www.displayfusion.com/Discussions/RSS/?TopicID=018bab7b-54eb-7550-a96d-91c49611dc52</generator>
<item>
<title>RE: Focus window trigger cooldown and/or enable &amp; disable triggers with scripted functions</title>
<link>https://www.displayfusion.com/Discussions/View/focus-window-trigger-cooldown-andor-enable-disable-triggers-with-scripted-functions/?ID=018bab7b-54eb-7550-a96d-91c49611dc52#6</link>
<pubDate>Fri, 10 Nov 2023 14:09:59 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/focus-window-trigger-cooldown-andor-enable-disable-triggers-with-scripted-functions/?ID=018bab7b-54eb-7550-a96d-91c49611dc52#6</guid>
<category>DisplayFusion</category>
<description><![CDATA[Likely two or three, but it really depends on how our testing goes]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Likely two or three, but it really depends on how our testing goes
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Focus window trigger cooldown and/or enable &amp; disable triggers with scripted functions</title>
<link>https://www.displayfusion.com/Discussions/View/focus-window-trigger-cooldown-andor-enable-disable-triggers-with-scripted-functions/?ID=018bab7b-54eb-7550-a96d-91c49611dc52#5</link>
<pubDate>Thu, 09 Nov 2023 17:08:06 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/focus-window-trigger-cooldown-andor-enable-disable-triggers-with-scripted-functions/?ID=018bab7b-54eb-7550-a96d-91c49611dc52#5</guid>
<category>DisplayFusion</category>
<description><![CDATA[Quote:
Not likely for our next beta as it's already scoped out, but we'll see what we can do for beta 2.
Approximately how many months out is beta 2?]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
<div class="BackGrey"><div class="Text"><div><b>Quote:</b></div>Not likely for our next beta as it's already scoped out, but we'll see what we can do for beta 2.</div></div><br/>
<br/>
Approximately how many months out is beta 2?
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Focus window trigger cooldown and/or enable &amp; disable triggers with scripted functions</title>
<link>https://www.displayfusion.com/Discussions/View/focus-window-trigger-cooldown-andor-enable-disable-triggers-with-scripted-functions/?ID=018bab7b-54eb-7550-a96d-91c49611dc52#4</link>
<pubDate>Thu, 09 Nov 2023 17:02:05 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/focus-window-trigger-cooldown-andor-enable-disable-triggers-with-scripted-functions/?ID=018bab7b-54eb-7550-a96d-91c49611dc52#4</guid>
<category>DisplayFusion</category>
<description><![CDATA[Not likely for our next beta as it's already scoped out, but we'll see what we can do for beta 2.]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Not likely for our next beta as it's already scoped out, but we'll see what we can do for beta 2.
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Focus window trigger cooldown and/or enable &amp; disable triggers with scripted functions</title>
<link>https://www.displayfusion.com/Discussions/View/focus-window-trigger-cooldown-andor-enable-disable-triggers-with-scripted-functions/?ID=018bab7b-54eb-7550-a96d-91c49611dc52#3</link>
<pubDate>Thu, 09 Nov 2023 16:02:56 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/focus-window-trigger-cooldown-andor-enable-disable-triggers-with-scripted-functions/?ID=018bab7b-54eb-7550-a96d-91c49611dc52#3</guid>
<category>DisplayFusion</category>
<description><![CDATA[Quote:
We have both of these on our feature request list so I've added your vote to them, we'll let you know if it's something we add in the future.
Thanks!
Any idea if one or both of those features will be implemented in the beta build in the next month or two at all?]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
<div class="BackGrey"><div class="Text"><div><b>Quote:</b></div>We have both of these on our feature request list so I've added your vote to them, we'll let you know if it's something we add in the future.<br/>
<br/>
Thanks!</div></div><br/>
<br/>
Any idea if one or both of those features will be implemented in the beta build in the next month or two at all?
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Focus window trigger cooldown and/or enable &amp; disable triggers with scripted functions</title>
<link>https://www.displayfusion.com/Discussions/View/focus-window-trigger-cooldown-andor-enable-disable-triggers-with-scripted-functions/?ID=018bab7b-54eb-7550-a96d-91c49611dc52#2</link>
<pubDate>Thu, 09 Nov 2023 14:52:03 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/focus-window-trigger-cooldown-andor-enable-disable-triggers-with-scripted-functions/?ID=018bab7b-54eb-7550-a96d-91c49611dc52#2</guid>
<category>DisplayFusion</category>
<description><![CDATA[We have both of these on our feature request list so I've added your vote to them, we'll let you know if it's something we add in the future.
Thanks!]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
We have both of these on our feature request list so I've added your vote to them, we'll let you know if it's something we add in the future.<br/>
<br/>
Thanks!
</div>
]]></content:encoded>
</item>
<item>
<title>Focus window trigger cooldown and/or enable &amp; disable triggers with scripted functions</title>
<link>https://www.displayfusion.com/Discussions/View/focus-window-trigger-cooldown-andor-enable-disable-triggers-with-scripted-functions/?ID=018bab7b-54eb-7550-a96d-91c49611dc52</link>
<pubDate>Tue, 07 Nov 2023 20:31:09 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/focus-window-trigger-cooldown-andor-enable-disable-triggers-with-scripted-functions/?ID=018bab7b-54eb-7550-a96d-91c49611dc52</guid>
<category>DisplayFusion</category>
<description><![CDATA[I have a very simple Trigger:
Event:
Window Focused
Frequency:
Always
Process Filename:
C:\Games\Steam\steamapps\common\Red Dead Redemption 2\RDR2.exe
Window Text:
"Red Dead Redemption 2"
Actions:
Wait         - 3500ms
Run Function - "Red Dead 2 - Fullscreen shortcut"
------
Scripted...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
I have a very simple Trigger:<br/>
<br/>
Event:<br/>
Window Focused<br/>
<br/>
Frequency:<br/>
Always<br/>
<br/>
Process Filename:<br/>
C:\Games\Steam\steamapps\common\Red Dead Redemption 2\RDR2.exe<br/>
<br/>
Window Text:<br/>
"Red Dead Redemption 2"<br/>
<br/>
Actions:<br/>
Wait         - 3500ms<br/>
Run Function - "Red Dead 2 - Fullscreen shortcut"<br/>
<br/>
------<br/>
<br/>
Scripted function's info:<br/>
<br/>
Name:<br/>
"Red Dead 2 - Fullscreen shortcut"<br/>
<br/>
Description:<br/>
"Switch back to Fullscreen with Alt+Enter"<br/>
<br/>
Code:<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="#code019e5e4bd66e744191723f635de50de7" 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('code019e5e4bd66e744191723f635de50de7Js'); 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="code019e5e4bd66e744191723f635de50de7Js" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%; min-height:75px;">using System;
using System.Drawing;

// The 'windowHandle' parameter will contain the window handle for the:
//   - Active window when run by hotkey
//   - Trigger target when run by a Trigger rule
//   - TitleBar Button owner when run by a TitleBar Button
//   - Jump List owner when run from a Taskbar Jump List
//   - Currently focused window if none of these match
public static class DisplayFusionFunction
{
    public static void Run(IntPtr windowHandle)
    {
        BFS.Input.SendKeys("%({VK_13})");
    }
}</pre><textarea id="code019e5e4bd66e744191723f635de50de7" name="code019e5e4bd66e744191723f635de50de7" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div><br/>
<br/>
------<br/>
<br/>
Here's my issue:<br/>
<br/>
Red Dead 2 does this stupid thing where if you're playing the game in Fullscreen, it switched to Windowed Borderless the moment you tab out of the game. When tabbing back into the game, you have only three options:<br/>
1. Play at Windowed Borderless<br/>
2. Switch back to Fullscreen through in-game settings<br/>
3. Switch back to Fullscreen through the Alt+Enter keyboard shortcut.<br/>
<br/>
I opted to try to automate that third choice with the above Window Focused Trigger combined with the Scripted Function I created. When switching it back to Fullscreen using either method, the game flashes in and out of focus for a brief second while it's fulling taking effect. The problem with that, though, is that this causes DisplayFusion to trigger multiple times in a row. In fact, it basically gets stuck in a loop.<br/>
<br/>
I need help figuring out one of two solutions/bandaids:<br/>
1. Is there a way to set a trigger to a specified cooldown? (e.g. cannot be triggered more often than once every [specified] seconds)<br/>
2. If that's not possible, is there a way to enable and disable a DisplayFusion Trigger from a Scripted Function? If so, I'm thinking I could work around not having a cooldown by having a scripted function disable the first trigger but then enable a second trigger after waiting a few seconds. And that second trigger would then do the same functionality of the first trigger and then get disabled and then enable the first trigger the next time I tab back into the game.<br/>
<br/>
I'm not sure I'm really making much sense but I'm hoping I can get some help in figuring out a way to easily automate reverting Red Dead 2 to fullscreen.
</div>
]]></content:encoded>
</item>
</channel>
</rss>