<?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: Trigger when Window loses focus</title>
<atom:link href="https://www.displayfusion.com/Discussions/RSS/?TopicID=9f95a359-2a53-460c-a0b8-99a745d2dbaa" rel="self" type="application/rss+xml" />
<link>https://www.displayfusion.com/Discussions/RSS/?TopicID=9f95a359-2a53-460c-a0b8-99a745d2dbaa</link>
<description>DisplayFusion RSS: Trigger when Window loses focus</description>
<lastBuildDate>Sun, 19 Apr 2026 12:07:46 GMT</lastBuildDate>
<language>en</language>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<generator>https://www.displayfusion.com/Discussions/RSS/?TopicID=9f95a359-2a53-460c-a0b8-99a745d2dbaa</generator>
<item>
<title>RE: Trigger when Window loses focus</title>
<link>https://www.displayfusion.com/Discussions/View/trigger-when-window-loses-focus/?ID=9f95a359-2a53-460c-a0b8-99a745d2dbaa#2</link>
<pubDate>Mon, 13 May 2019 18:36:44 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/trigger-when-window-loses-focus/?ID=9f95a359-2a53-460c-a0b8-99a745d2dbaa#2</guid>
<category>DisplayFusion</category>
<description><![CDATA[Windows doesn't send a global message when an application loses focus, so it's not possible to add as a Trigger event.
You could have a Window Focused Trigger that uses *.* as the application, and runs a Scripted Function that does this:
Check if window that got focus was Spotify
If not, check...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Windows doesn't send a global message when an application loses focus, so it's not possible to add as a Trigger event.<br/>
<br/>
You could have a Window Focused Trigger that uses *.* as the application, and runs a Scripted Function that does this:<br/>
<ul class="ListBullet">
<li>Check if window that got focus was Spotify</li>
<li>If not, check if Spotify is visible</li>
<li>If so, minimize Spotify</li></ul>
<br/>
That would be a bit resource intensive though, since it would have to run through that script every time a different window gets focus.
</div>
]]></content:encoded>
</item>
<item>
<title>Trigger when Window loses focus</title>
<link>https://www.displayfusion.com/Discussions/View/trigger-when-window-loses-focus/?ID=9f95a359-2a53-460c-a0b8-99a745d2dbaa</link>
<pubDate>Fri, 10 May 2019 23:02:08 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/trigger-when-window-loses-focus/?ID=9f95a359-2a53-460c-a0b8-99a745d2dbaa</guid>
<category>DisplayFusion</category>
<description><![CDATA[Hi;
I want a certain window (Spotify) to automatically close/minimise when it loses focus, but in the GUI there's only a Trigger for when a window gains focus. What would be the easiest way to do this?
Thanks!]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Hi;<br/>
I want a certain window (Spotify) to automatically close/minimise when it loses focus, but in the GUI there's only a Trigger for when a window gains focus. What would be the easiest way to do this?<br/>
Thanks!
</div>
]]></content:encoded>
</item>
</channel>
</rss>