<?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: Closing Window/Application</title>
<atom:link href="https://www.displayfusion.com/Discussions/RSS/?TopicID=efa2b0d4-ab71-4eaf-9ea0-6aa7f5d243d7" rel="self" type="application/rss+xml" />
<link>https://www.displayfusion.com/Discussions/RSS/?TopicID=efa2b0d4-ab71-4eaf-9ea0-6aa7f5d243d7</link>
<description>DisplayFusion RSS: Closing Window/Application</description>
<lastBuildDate>Mon, 25 May 2026 02:31:16 GMT</lastBuildDate>
<language>en</language>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<generator>https://www.displayfusion.com/Discussions/RSS/?TopicID=efa2b0d4-ab71-4eaf-9ea0-6aa7f5d243d7</generator>
<item>
<title>RE: Closing Window/Application</title>
<link>https://www.displayfusion.com/Discussions/View/closing-windowapplication/?ID=efa2b0d4-ab71-4eaf-9ea0-6aa7f5d243d7#12</link>
<pubDate>Wed, 08 Sep 2021 16:20:29 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/closing-windowapplication/?ID=efa2b0d4-ab71-4eaf-9ea0-6aa7f5d243d7#12</guid>
<category>DisplayFusion</category>
<description><![CDATA[Thank you that works great!!]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Thank you that works great!!
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Closing Window/Application</title>
<link>https://www.displayfusion.com/Discussions/View/closing-windowapplication/?ID=efa2b0d4-ab71-4eaf-9ea0-6aa7f5d243d7#11</link>
<pubDate>Wed, 08 Sep 2021 16:05:24 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/closing-windowapplication/?ID=efa2b0d4-ab71-4eaf-9ea0-6aa7f5d243d7#11</guid>
<category>DisplayFusion</category>
<description><![CDATA[Hello,
Ah, you'll want to take out the two front slashes before that line, as those cause your code to be commented out. The full script should look like this:
Code
Copy
Select All
using System;
using System.Drawing;
// The 'windowHandle' parameter will contain the window handle for the:
...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Hello,<br/>
<br/>
Ah, you'll want to take out the two front slashes before that line, as those cause your code to be commented out. The full script should look 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="#code019e5cf8e5b072b38fd016dcf3492364" 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('code019e5cf8e5b072b38fd016dcf3492364Js'); 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="code019e5cf8e5b072b38fd016dcf3492364Js" 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.Window.Close(windowHandle);
    }
}</pre><textarea id="code019e5cf8e5b072b38fd016dcf3492364" name="code019e5cf8e5b072b38fd016dcf3492364" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div>
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Closing Window/Application</title>
<link>https://www.displayfusion.com/Discussions/View/closing-windowapplication/?ID=efa2b0d4-ab71-4eaf-9ea0-6aa7f5d243d7#10</link>
<pubDate>Wed, 08 Sep 2021 16:01:31 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/closing-windowapplication/?ID=efa2b0d4-ab71-4eaf-9ea0-6aa7f5d243d7#10</guid>
<category>DisplayFusion</category>
<description><![CDATA[Yes I did.
I have added a video of me creating the scripted function.]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Yes I did.<br/>
<br/>
I have added a video of me creating the scripted function.
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Closing Window/Application</title>
<link>https://www.displayfusion.com/Discussions/View/closing-windowapplication/?ID=efa2b0d4-ab71-4eaf-9ea0-6aa7f5d243d7#9</link>
<pubDate>Wed, 08 Sep 2021 16:00:50 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/closing-windowapplication/?ID=efa2b0d4-ab71-4eaf-9ea0-6aa7f5d243d7#9</guid>
<category>DisplayFusion</category>
<description><![CDATA[Sorry, yes I did do that.
I have added a video of me creating the scripted function.]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Sorry, yes I did do that.<br/>
<br/>
I have added a video of me creating the scripted function.
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Closing Window/Application</title>
<link>https://www.displayfusion.com/Discussions/View/closing-windowapplication/?ID=efa2b0d4-ab71-4eaf-9ea0-6aa7f5d243d7#8</link>
<pubDate>Wed, 08 Sep 2021 15:54:17 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/closing-windowapplication/?ID=efa2b0d4-ab71-4eaf-9ea0-6aa7f5d243d7#8</guid>
<category>DisplayFusion</category>
<description><![CDATA[Hello,
After you created the scripted function, did you go back to your trigger and use the "Run Function" action, and then select the scripted function you created?
Thanks!]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Hello,<br/>
<br/>
After you created the scripted function, did you go back to your trigger and use the "Run Function" action, and then select the scripted function you created?<br/>
<br/>
Thanks!
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Closing Window/Application</title>
<link>https://www.displayfusion.com/Discussions/View/closing-windowapplication/?ID=efa2b0d4-ab71-4eaf-9ea0-6aa7f5d243d7#7</link>
<pubDate>Wed, 08 Sep 2021 15:47:43 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/closing-windowapplication/?ID=efa2b0d4-ab71-4eaf-9ea0-6aa7f5d243d7#7</guid>
<category>DisplayFusion</category>
<description><![CDATA[I removed the "minimize window to system tray" run function.
Then for the scripted function I tried both using C# and Visual basic. I enter the code line and click "Verify Function" and it says "Verify Successful".
I then click "ok", "Ok" and then "apply".
When I open the program the window ju...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
I removed the "minimize window to system tray" run function.<br/>
<br/>
Then for the scripted function I tried both using C# and Visual basic. I enter the code line and click "Verify Function" and it says "Verify Successful". <br/>
<br/>
I then click "ok", "Ok" and then "apply".<br/>
<br/>
When I open the program the window just stays in the middle of the screen.
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Closing Window/Application</title>
<link>https://www.displayfusion.com/Discussions/View/closing-windowapplication/?ID=efa2b0d4-ab71-4eaf-9ea0-6aa7f5d243d7#6</link>
<pubDate>Wed, 08 Sep 2021 15:31:27 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/closing-windowapplication/?ID=efa2b0d4-ab71-4eaf-9ea0-6aa7f5d243d7#6</guid>
<category>DisplayFusion</category>
<description><![CDATA[Hello,
If you create a scripted function in DisplayFusion and add this line:
BFS.Window.Close(windowHandle);
You can then call that function in the action pane of your trigger, and it should close that window out.
Hope that helps!]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Hello,<br/>
<br/>
If you create a scripted function in DisplayFusion and add this line:<br/>
<br/>
BFS.Window.Close(windowHandle);<br/>
<br/>
You can then call that function in the action pane of your trigger, and it should close that window out.<br/>
<br/>
Hope that helps!
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Closing Window/Application</title>
<link>https://www.displayfusion.com/Discussions/View/closing-windowapplication/?ID=efa2b0d4-ab71-4eaf-9ea0-6aa7f5d243d7#5</link>
<pubDate>Wed, 08 Sep 2021 15:24:31 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/closing-windowapplication/?ID=efa2b0d4-ab71-4eaf-9ea0-6aa7f5d243d7#5</guid>
<category>DisplayFusion</category>
<description><![CDATA[Right now the trigger is grabbing the window and minimizing it to the system tray. If possible I would like to have the trigger completely close the window rather than minimize to the system tray.]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Right now the trigger is grabbing the window and minimizing it to the system tray. If possible I would like to have the trigger completely close the window rather than minimize to the system tray.
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Closing Window/Application</title>
<link>https://www.displayfusion.com/Discussions/View/closing-windowapplication/?ID=efa2b0d4-ab71-4eaf-9ea0-6aa7f5d243d7#4</link>
<pubDate>Wed, 08 Sep 2021 15:07:12 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/closing-windowapplication/?ID=efa2b0d4-ab71-4eaf-9ea0-6aa7f5d243d7#4</guid>
<category>DisplayFusion</category>
<description><![CDATA[Hello,
Thanks for sending that over. Let's make sure the trigger is actually grabbing that window itself.
Is that minimize action doing anything to the window? If you try using the "Move window to specific size and location" action to move the window, does that work?
Thanks!]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Hello,<br/>
<br/>
Thanks for sending that over. Let's make sure the trigger is actually grabbing that window itself. <br/>
<br/>
Is that minimize action doing anything to the window? If you try using the "Move window to specific size and location" action to move the window, does that work?<br/>
<br/>
Thanks!
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Closing Window/Application</title>
<link>https://www.displayfusion.com/Discussions/View/closing-windowapplication/?ID=efa2b0d4-ab71-4eaf-9ea0-6aa7f5d243d7#3</link>
<pubDate>Wed, 08 Sep 2021 12:23:29 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/closing-windowapplication/?ID=efa2b0d4-ab71-4eaf-9ea0-6aa7f5d243d7#3</guid>
<category>DisplayFusion</category>
<description><![CDATA[I have attached a screen shot of the window and the trigger I have enabled.
The program is PDF-Xchange Vault.
Thanks]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
I have attached a screen shot of the window and the trigger I have enabled.<br/>
<br/>
The program is PDF-Xchange Vault.<br/>
<br/>
Thanks
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Closing Window/Application</title>
<link>https://www.displayfusion.com/Discussions/View/closing-windowapplication/?ID=efa2b0d4-ab71-4eaf-9ea0-6aa7f5d243d7#2</link>
<pubDate>Tue, 07 Sep 2021 17:35:54 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/closing-windowapplication/?ID=efa2b0d4-ab71-4eaf-9ea0-6aa7f5d243d7#2</guid>
<category>DisplayFusion</category>
<description><![CDATA[Hello,
What program launches that confirmation window? Could you send over a screenshot of the window?
Thanks!]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Hello,<br/>
<br/>
What program launches that confirmation window? Could you send over a screenshot of the window?<br/>
<br/>
Thanks!
</div>
]]></content:encoded>
</item>
<item>
<title>Closing Window/Application</title>
<link>https://www.displayfusion.com/Discussions/View/closing-windowapplication/?ID=efa2b0d4-ab71-4eaf-9ea0-6aa7f5d243d7</link>
<pubDate>Fri, 03 Sep 2021 17:20:56 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/closing-windowapplication/?ID=efa2b0d4-ab71-4eaf-9ea0-6aa7f5d243d7</guid>
<category>DisplayFusion</category>
<description><![CDATA[I have a program that needs to load on Windows startup to populate a registration key. The only problem is that a window opens to say the the key has been registered but the window stays open until I click "Ok"
I can't figure out how to get create a trigger to close the window automatically when...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
I have a program that needs to load on Windows startup to populate a registration key. The only problem is that a window opens to say the the key has been registered but the window stays open until I click "Ok"<br/>
<br/>
I can't figure out how to get create a trigger to close the window automatically when it opens.<br/>
<br/>
any help would be appreciated.
</div>
]]></content:encoded>
</item>
</channel>
</rss>