<?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: Process exclusive Key Combinations for Functions?</title>
<atom:link href="https://www.displayfusion.com/Discussions/RSS/?TopicID=01900f92-f020-7271-8e3c-7658e3e69c3d" rel="self" type="application/rss+xml" />
<link>https://www.displayfusion.com/Discussions/RSS/?TopicID=01900f92-f020-7271-8e3c-7658e3e69c3d</link>
<description>DisplayFusion RSS: Process exclusive Key Combinations for Functions?</description>
<lastBuildDate>Sun, 13 Sep 2026 22:03:37 GMT</lastBuildDate>
<language>en</language>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<generator>https://www.displayfusion.com/Discussions/RSS/?TopicID=01900f92-f020-7271-8e3c-7658e3e69c3d</generator>
<item>
<title>RE: Process exclusive Key Combinations for Functions?</title>
<link>https://www.displayfusion.com/Discussions/View/process-exclusive-key-combinations-for-functions/?ID=01900f92-f020-7271-8e3c-7658e3e69c3d#3</link>
<pubDate>Wed, 19 Jun 2024 03:57:38 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/process-exclusive-key-combinations-for-functions/?ID=01900f92-f020-7271-8e3c-7658e3e69c3d#3</guid>
<category>DisplayFusion</category>
<description><![CDATA[Quote:
I've attached an example script
Thank you, this solution is within the scope of what I was looking for.]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
<div class="BackGrey"><div class="Text"><div><b>Quote:</b></div>I've attached an example script</div></div><br/>
Thank you, this solution is within the scope of what I was looking for.
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Process exclusive Key Combinations for Functions?</title>
<link>https://www.displayfusion.com/Discussions/View/process-exclusive-key-combinations-for-functions/?ID=01900f92-f020-7271-8e3c-7658e3e69c3d#2</link>
<pubDate>Tue, 18 Jun 2024 13:27:57 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/process-exclusive-key-combinations-for-functions/?ID=01900f92-f020-7271-8e3c-7658e3e69c3d#2</guid>
<category>DisplayFusion</category>
<description><![CDATA[If you are comfortable with scripting you should be able to do this. I've attached an example script below that will only fire the function if a Chrome window is currently focused, but you can change the app it looks for on line 16:
Code
Copy
Select All
using System;&#xA;using System.Drawing;...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
If you are comfortable with scripting you should be able to do this. I've attached an example script below that will only fire the function if a Chrome window is currently focused, but you can change the app it looks for on line 16:<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="#code01a09ccc1d14709a8fc853d3b04fe1ff" 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('code01a09ccc1d14709a8fc853d3b04fe1ffJs'); 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="code01a09ccc1d14709a8fc853d3b04fe1ffJs" name="code01a09ccc1d14709a8fc853d3b04fe1ffJs" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%;min-height:75px">using System;&#xA;using System.Drawing;&#xA;&#xA;// The &#x27;windowHandle&#x27; parameter will contain the window handle for the:&#xA;//   - Active window when run by hotkey&#xA;//   - Trigger target when run by a Trigger rule&#xA;//   - TitleBar Button owner when run by a TitleBar Button&#xA;//   - Jump List owner when run from a Taskbar Jump List&#xA;//   - Currently focused window if none of these match&#xA;public static class DisplayFusionFunction&#xA;{&#xA;    public static void Run(IntPtr windowHandle)&#xA;    {&#xA;        IntPtr FocusedWindow = BFS.Window.GetFocusedWindow();&#xA;        string processName = BFS.Application.GetMainFileByWindow(FocusedWindow);&#xA;        if (processName.EndsWith(chrome.exe))&#xA;        {&#xA;        BFS.DisplayFusion.RunFunction(FunctionName);&#xA;        }&#xA;    }&#xA;}</pre><textarea id="code01a09ccc1d14709a8fc853d3b04fe1ff" name="code01a09ccc1d14709a8fc853d3b04fe1ff" style="position:absolute;top:0;left:-999999px;width:1px;height:1px"></textarea></div>
</div></div></div>
</div>
]]></content:encoded>
</item>
<item>
<title>Process exclusive Key Combinations for Functions?</title>
<link>https://www.displayfusion.com/Discussions/View/process-exclusive-key-combinations-for-functions/?ID=01900f92-f020-7271-8e3c-7658e3e69c3d</link>
<pubDate>Thu, 13 Jun 2024 03:10:06 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/process-exclusive-key-combinations-for-functions/?ID=01900f92-f020-7271-8e3c-7658e3e69c3d</guid>
<category>DisplayFusion</category>
<description><![CDATA[I have a custom function for changing window size/location mapped to a key combination, but I only want it to activate for one [maybe two] programs. Since I mostly run games in borderless windowed, accidentally pressing the key combo yields unwanted results.
For a few years I've gotten by with r...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
I have a custom function for changing window size/location mapped to a key combination, but I only want it to activate for one [maybe two] programs. Since I mostly run games in borderless windowed, accidentally pressing the key combo yields unwanted results.<br/>
<br/>
For a few years I've gotten by with remapping the key combination but I'm reorganizing my workflow so trying not to take the inconvienience anymore. Also don't want to do this in a roundabout way. Such as making two triggers that toggles key combinations and appending every process. <br/>
<br/>
I can achieve this with one line using AutoHotKey (#IfWinActive) but would like to keep DisplayFusion as my only window manager.
</div>
]]></content:encoded>
</item>
</channel>
</rss>