<?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 on windows change or update?</title>
<atom:link href="https://www.displayfusion.com/Discussions/RSS/?TopicID=9ac5b003-e07f-4d24-b109-6ce853ca69b8" rel="self" type="application/rss+xml" />
<link>https://www.displayfusion.com/Discussions/RSS/?TopicID=9ac5b003-e07f-4d24-b109-6ce853ca69b8</link>
<description>DisplayFusion RSS: Trigger on windows change or update?</description>
<lastBuildDate>Sun, 19 Apr 2026 10:46:31 GMT</lastBuildDate>
<language>en</language>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<generator>https://www.displayfusion.com/Discussions/RSS/?TopicID=9ac5b003-e07f-4d24-b109-6ce853ca69b8</generator>
<item>
<title>RE: Trigger on windows change or update?</title>
<link>https://www.displayfusion.com/Discussions/View/trigger-on-windows-change-or-update/?ID=9ac5b003-e07f-4d24-b109-6ce853ca69b8#8</link>
<pubDate>Tue, 14 Aug 2018 00:00:12 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/trigger-on-windows-change-or-update/?ID=9ac5b003-e07f-4d24-b109-6ce853ca69b8#8</guid>
<category>DisplayFusion</category>
<description><![CDATA[Apologies for the late reply!
Sorry this script isn't working for you. Would you be able to try out some things for me to get to the bottom of these problems?
First: Can you make sure that the script is running in the System Tray? (all of those icons near the clock on the right side of your tas...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Apologies for the late reply!<br/>
<br/>
Sorry this script isn't working for you. Would you be able to try out some things for me to get to the bottom of these problems?<br/>
<br/>
First: Can you make sure that the script is running in the System Tray? (all of those icons near the clock on the right side of your taskbar)<br/>
<br/>
Second: Can you make sure that those "NEW_NOTIFICATION" lines are actually showing up in your log? You can do this by using some log monitoring software, like: <a href="https://www.logfusion.ca/" target="_blank" rel="nofollow"><b>https://www.logfusion.ca/</b></a>.<br/>
<br/>
Hopefully we can get to the bottom of these problems!<br/>
<br/>
Thanks
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Trigger on windows change or update?</title>
<link>https://www.displayfusion.com/Discussions/View/trigger-on-windows-change-or-update/?ID=9ac5b003-e07f-4d24-b109-6ce853ca69b8#7</link>
<pubDate>Tue, 05 Jun 2018 12:39:49 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/trigger-on-windows-change-or-update/?ID=9ac5b003-e07f-4d24-b109-6ce853ca69b8#7</guid>
<category>DisplayFusion</category>
<description><![CDATA[HI Thomas,
Really appreciate the reply. I tried it out to partial success. When the function initially runs it pops an alert if it sees the search string has appeared since the last time it had the file open.
But ... it won't pop an alert when a new update is made to the file. In order for it t...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
HI Thomas, <br/>
Really appreciate the reply. I tried it out to partial success. When the function initially runs it pops an alert if it sees the search string has appeared since the last time it had the file open. <br/>
<br/>
But ... it won't pop an alert when a new update is made to the file. In order for it to alert again I have to close the function and re-run it. <br/>
<br/>
Along the same line, if the file has not been updated and the function is started it will not pop on any new updates. <br/>
<br/>
Seems like either the file watcher isn't notifying the function of an update on the fly or the function isn't looping properly ?<br/>
<br/>
My understanding of C is a bit rudimentary at best. <br/>
<br/>
Any ideas? I tried making a few changes to the breaks and reviewed things but didn't have any luck yet. <br/>
<br/>
Thanks again -Shawn
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Trigger on windows change or update?</title>
<link>https://www.displayfusion.com/Discussions/View/trigger-on-windows-change-or-update/?ID=9ac5b003-e07f-4d24-b109-6ce853ca69b8#6</link>
<pubDate>Thu, 31 May 2018 20:07:08 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/trigger-on-windows-change-or-update/?ID=9ac5b003-e07f-4d24-b109-6ce853ca69b8#6</guid>
<category>DisplayFusion</category>
<description><![CDATA[Sorry for the late reply!
I put together a script that should work for you. It uses the FileSystemWatcher class to keep track of a file of your choosing, then lets you know when it changes with the search text you provide. Here's how to get it into DisplayFusion:
Download the file attached to t...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Sorry for the late reply!<br/>
<br/>
I put together a script that should work for you. It uses the FileSystemWatcher class to keep track of a file of your choosing, then lets you know when it changes with the search text you provide. Here's how to get it into DisplayFusion:<br/>
<br/>
<ul class="ListBullet">
<li>Download the file attached to this post</li>
<li>Open DisplayFusion Settings window to the "Functions" tab</li>
<li>Press the "Add Scripted" button</li>
<li>In the window that pops up, copy the code from the file you downloaded in the first step into the window</li>
<li>Change the "Path" and "SearchText" variables on lines 20 and 21 to the file you want to watch, and the text you want to be notified about</li>
<li>Give it a name, then Click "OK" to save and close that window, then "OK" again to save and apply your changes</li></ul>
<br/>
This script would probably work best with a "DisplayFusion Starts" Trigger. Here's how to set that up:<br/>
<br/>
<ul class="ListBullet">
<li>Open the DisplayFusion Settings window to the "Triggers" tab</li>
<li>Click the "Add" button</li>
<li>Select "DisplayFusion Starts" from the "Event:" dropdown</li>
<li>In the Actions section, select "Run Function" from the "Add" dropdown</li>
<li>Select the function you created in the steps above</li>
<li>Click OK to close that window, then OK again to save and apply your changes</li></ul>
<br/>
I hope this works for you!
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Trigger on windows change or update?</title>
<link>https://www.displayfusion.com/Discussions/View/trigger-on-windows-change-or-update/?ID=9ac5b003-e07f-4d24-b109-6ce853ca69b8#5</link>
<pubDate>Fri, 04 May 2018 12:44:12 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/trigger-on-windows-change-or-update/?ID=9ac5b003-e07f-4d24-b109-6ce853ca69b8#5</guid>
<category>DisplayFusion</category>
<description><![CDATA[Hi Keith,
In my continuing efforts to get slack improved i have rounded down a way using powershell to monitor a slack log file and trigger another action. In this case it is just a OK popup.
Can you think of any good way to integrate this idea into DisplayFusion? It would be awesome to have it...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Hi Keith, <br/>
In my continuing efforts to get slack improved i have rounded down a way using powershell to monitor a slack log file and trigger another action. In this case it is just a OK popup. <br/>
<br/>
Can you think of any good way to integrate this idea into DisplayFusion? It would be awesome to have it trigger DF to highlight the slack window or dim everything else or whatever rather then just the OK box I have. <br/>
<br/>
A round-about way is that I could have the PS script execute a process of something that doesn't matter and have DF trigger on that process launch (or end). But that seems clumsy. <br/>
<br/>
This is the PS line.<br/>
<br/>
<div id="" 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="#code019da55960b270418a90aa35cee23511" class="ClipboardCopyControl"><img src="https://www.displayfusion.com/MediaCommon/SVGs/FontAwesome/clone.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;vertical-align:middle !important;width:auto;max-width:16px;height:16px;" /><span class="Text">Copy</span></a></div><div class="TableTitleButton"><a href="#" onclick="bfs.util.codeEditorSelectAll('code019da55960b270418a90aa35cee23511Js'); return false;"><img src="https://www.displayfusion.com/MediaCommon/SVGs/FontAwesome/square-check.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;vertical-align:middle !important;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="code019da55960b270418a90aa35cee23511Js" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%; min-height:75px;">Get-Content -Path C:\Users\UserName\AppData\Roaming\Slack\logs\browser.log -Tail 0 -Wait | where {if ($_ -match "NEW_NOTIFICATION") {write-host (new-object -ComObject wscript.shell).Popup("Check it OK",0,"Hey You! You have a new slack message!!!")}}</pre><textarea id="code019da55960b270418a90aa35cee23511" name="code019da55960b270418a90aa35cee23511" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div><br/>
<br/>
FYI the browser.log file on slack only adds the NEW_NOTIFICATION item when the window is not in the foreground. Not on every new message.
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Trigger on windows change or update?</title>
<link>https://www.displayfusion.com/Discussions/View/trigger-on-windows-change-or-update/?ID=9ac5b003-e07f-4d24-b109-6ce853ca69b8#4</link>
<pubDate>Wed, 18 Oct 2017 18:43:43 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/trigger-on-windows-change-or-update/?ID=9ac5b003-e07f-4d24-b109-6ce853ca69b8#4</guid>
<category>DisplayFusion</category>
<description><![CDATA[Ah, that's an interesting idea! I will put that on our list for further investigation. If it's something we're able to implement reliably in a future version, we'll definitely let you know
Thanks!]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Ah, that's an interesting idea! I will put that on our list for further investigation. If it's something we're able to implement reliably in a future version, we'll definitely let you know <img src="https://www.displayfusion.com/MediaCommon/SVGs/FontAwesome/face-smile.light.svg" alt=":)" style="box-sizing:border-box;position:relative;overflow:hidden;vertical-align:middle !important;width:16px;height:16px;" HelpButtonData=":)" HelpButtonDataAlign="BelowMiddle" /><br/>
<br/>
Thanks!
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Trigger on windows change or update?</title>
<link>https://www.displayfusion.com/Discussions/View/trigger-on-windows-change-or-update/?ID=9ac5b003-e07f-4d24-b109-6ce853ca69b8#3</link>
<pubDate>Wed, 18 Oct 2017 15:03:23 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/trigger-on-windows-change-or-update/?ID=9ac5b003-e07f-4d24-b109-6ce853ca69b8#3</guid>
<category>DisplayFusion</category>
<description><![CDATA[Thanks Keith,
Ah. Makes sense but of course disappointing.
Is there any ability to watch for "SetOverlayIcon" that happens on the task bar? From what I understand when nothing is present the value is Null. If there was some way to highlight a window based on the overlay icon being not equal to ...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Thanks Keith, <br/>
Ah. Makes sense but of course disappointing. <br/>
<br/>
Is there any ability to watch for "SetOverlayIcon" that happens on the task bar? From what I understand when nothing is present the value is Null. If there was some way to highlight a window based on the overlay icon being not equal to null maybe? <br/>
<br/>
https://msdn.microsoft.com/en-us/library/windows/desktop/dd391696%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396 <br/>
<br/>
Unfortunately I am not a real coder so only making some leaps here. If you think it is possible I can try to piece some things together. But if a lost cause .. won't bother. <br/>
<br/>
-S
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Trigger on windows change or update?</title>
<link>https://www.displayfusion.com/Discussions/View/trigger-on-windows-change-or-update/?ID=9ac5b003-e07f-4d24-b109-6ce853ca69b8#2</link>
<pubDate>Wed, 18 Oct 2017 13:25:58 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/trigger-on-windows-change-or-update/?ID=9ac5b003-e07f-4d24-b109-6ce853ca69b8#2</guid>
<category>DisplayFusion</category>
<description><![CDATA[Unfortunately this wouldn't really be possible to do. The only reliable way to detect when a window changes would be to monitor for WM_PAINT messages, but applications repaint themselves a lot, so the Trigger would just be constantly firing.
Sorry!]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Unfortunately this wouldn't really be possible to do. The only reliable way to detect when a window changes would be to monitor for WM_PAINT messages, but applications repaint themselves <i>a lot</i>, so the Trigger would just be constantly firing.<br/>
<br/>
Sorry!
</div>
]]></content:encoded>
</item>
<item>
<title>Trigger on windows change or update?</title>
<link>https://www.displayfusion.com/Discussions/View/trigger-on-windows-change-or-update/?ID=9ac5b003-e07f-4d24-b109-6ce853ca69b8</link>
<pubDate>Tue, 17 Oct 2017 14:08:36 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/trigger-on-windows-change-or-update/?ID=9ac5b003-e07f-4d24-b109-6ce853ca69b8</guid>
<category>DisplayFusion</category>
<description><![CDATA[Trying to see if it's possible to trigger or script based on a Window changing in some way.
Short term / small reason : I want to simply highlight Slack if it updates in anyway to improve visibility  since the notifications are not the best. The contents of the window obviously change a little w...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Trying to see if it's possible to trigger or script based on a Window changing in some way. <br/>
<br/>
Short term / small reason : I want to simply highlight Slack if it updates in anyway to improve visibility  since the notifications are not the best. The contents of the window obviously change a little when an update happens since there are unread message tags. But also the taskbar changes as well (windows 10) because it updates the badge with an unread count. <br/>
<br/>
Bigger reason : I think it would be very helpful to combine window changes with the script Thomas wrote "Actively Dim Unfocused Windows" to something that Dims all windows until they have been updated in some way after they are out of focus. Or a non dimming script that just highlights any windows that have been updated since they lost focus. I think it would be helpful on the large screen to see when the windows have been updated. (Outlook, chat apps, network monitors etc.)<br/>
<br/>
I did a handful of searches in the discussion and didn't find an obvious answer. <br/>
<br/>
Thanks for any answers or ideas. -S
</div>
]]></content:encoded>
</item>
</channel>
</rss>