<?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: Highlight Window: Automatically use previous color</title>
<atom:link href="https://www.displayfusion.com/Discussions/RSS/?TopicID=018eee9c-9fd8-4d9f-9577-c2da06848a90" rel="self" type="application/rss+xml" />
<link>https://www.displayfusion.com/Discussions/RSS/?TopicID=018eee9c-9fd8-4d9f-9577-c2da06848a90</link>
<description>DisplayFusion RSS: Highlight Window: Automatically use previous color</description>
<lastBuildDate>Tue, 12 May 2026 01:40:36 GMT</lastBuildDate>
<language>en</language>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<generator>https://www.displayfusion.com/Discussions/RSS/?TopicID=018eee9c-9fd8-4d9f-9577-c2da06848a90</generator>
<item>
<title>RE: Highlight Window: Automatically use previous color</title>
<link>https://www.displayfusion.com/Discussions/View/highlight-window-automatically-use-previous-color/?ID=018eee9c-9fd8-4d9f-9577-c2da06848a90#6</link>
<pubDate>Wed, 31 Jan 2018 15:49:20 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/highlight-window-automatically-use-previous-color/?ID=018eee9c-9fd8-4d9f-9577-c2da06848a90#6</guid>
<category>DisplayFusion</category>
<description><![CDATA[Ok, could you try updating your Highlight Window Purple script with this code?
Code
Copy
Select All
using System;
using System.Drawing;
// The 'windowHandle' parameter will contain the window handle for the:
// - Active window when run by hotkey
// - Window Location target when run by a W...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Ok, could you try updating your Highlight Window Purple script with this code?<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="#code019e19d7d980773287dfe237340bdeb7" 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('code019e19d7d980773287dfe237340bdeb7Js'); 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="code019e19d7d980773287dfe237340bdeb7Js" 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
// - Window Location target when run by a Window Location 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)
    {    
        //remove all highlights
        BFS.DisplayFusion.RunFunction("Highlight Window: Disable All Highlights");
    
        //exit function if we couldn't get the window or if it's an explorer or DisplayFusion window
        if (windowHandle == IntPtr.Zero || BFS.Application.GetMainFileByWindow(windowHandle).Contains("explorer.exe") || BFS.Application.GetMainFileByWindow(windowHandle).Contains("DisplayFusion.exe"))
            return;

        //generate color from hex &gt; purple
        Color myDarkOrchid1 = ColorTranslator.FromHtml("#BF3EFF");

        //set the color of the window highlight
        BFS.Window.RemoveWindowHighlight(windowHandle);
        BFS.Window.SetWindowHighlight(windowHandle, myDarkOrchid1);
    }
}</pre><textarea id="code019e19d7d980773287dfe237340bdeb7" name="code019e19d7d980773287dfe237340bdeb7" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div><br/>
<br/>
Then create a Trigger rule like the attached screenshot?
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Highlight Window: Automatically use previous color</title>
<link>https://www.displayfusion.com/Discussions/View/highlight-window-automatically-use-previous-color/?ID=018eee9c-9fd8-4d9f-9577-c2da06848a90#5</link>
<pubDate>Tue, 30 Jan 2018 19:24:33 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/highlight-window-automatically-use-previous-color/?ID=018eee9c-9fd8-4d9f-9577-c2da06848a90#5</guid>
<category>DisplayFusion</category>
<description><![CDATA[Exactly. Automatically border highlight active / focused window with toggle hotkey to enable / disable.]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Exactly. Automatically border highlight active / focused window with toggle hotkey to enable / disable.
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Highlight Window: Automatically use previous color</title>
<link>https://www.displayfusion.com/Discussions/View/highlight-window-automatically-use-previous-color/?ID=018eee9c-9fd8-4d9f-9577-c2da06848a90#4</link>
<pubDate>Tue, 30 Jan 2018 16:16:24 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/highlight-window-automatically-use-previous-color/?ID=018eee9c-9fd8-4d9f-9577-c2da06848a90#4</guid>
<category>DisplayFusion</category>
<description><![CDATA[Ah ok! So ultimately you want DF to just automatically highlight whichever window is focused?]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Ah ok! So ultimately you want DF to just automatically highlight whichever window is focused?
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Highlight Window: Automatically use previous color</title>
<link>https://www.displayfusion.com/Discussions/View/highlight-window-automatically-use-previous-color/?ID=018eee9c-9fd8-4d9f-9577-c2da06848a90#3</link>
<pubDate>Fri, 26 Jan 2018 19:36:59 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/highlight-window-automatically-use-previous-color/?ID=018eee9c-9fd8-4d9f-9577-c2da06848a90#3</guid>
<category>DisplayFusion</category>
<description><![CDATA[I was looking to improve my efficiency when I record video tutorials using screencast-o-matic.
I thought, "Hey..it would be cool if I could toggle border highlight on focused window while recording a tutorial to give user focus".
After testing the highlight scripts on the macro forums, the purp...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
I was looking to improve my efficiency when I record video tutorials using screencast-o-matic.<br/>
<br/>
I thought, "Hey..it would be cool if I could toggle border highlight on focused window while recording a tutorial to give user focus".<br/>
<br/>
After testing the highlight scripts on the macro forums, the purple border highlight script is the best. The thing is, once the function is ran, it doesn't turn off. That's the way it seems... kinda disappointing. You can highlight window but unable to remove it.<br/>
<br/>
Thanks for the feedback brobro. <br/>
<br/>
^ _ ^
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Highlight Window: Automatically use previous color</title>
<link>https://www.displayfusion.com/Discussions/View/highlight-window-automatically-use-previous-color/?ID=018eee9c-9fd8-4d9f-9577-c2da06848a90#2</link>
<pubDate>Fri, 26 Jan 2018 18:45:50 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/highlight-window-automatically-use-previous-color/?ID=018eee9c-9fd8-4d9f-9577-c2da06848a90#2</guid>
<category>DisplayFusion</category>
<description><![CDATA[There isn't really a way to do either of those things at the moment, unfortunately. Are you just needing to highlight a single window, or do you highlight a few?]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
There isn't really a way to do either of those things at the moment, unfortunately. Are you just needing to highlight a single window, or do you highlight a few?
</div>
]]></content:encoded>
</item>
<item>
<title>Highlight Window: Automatically use previous color</title>
<link>https://www.displayfusion.com/Discussions/View/highlight-window-automatically-use-previous-color/?ID=018eee9c-9fd8-4d9f-9577-c2da06848a90</link>
<pubDate>Wed, 24 Jan 2018 17:41:34 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/highlight-window-automatically-use-previous-color/?ID=018eee9c-9fd8-4d9f-9577-c2da06848a90</guid>
<category>DisplayFusion</category>
<description><![CDATA[I didn't search here before I posted, but I find good script.
Question: How do I toggle border color to go from Purple to None (or transparent) using hotkey? Any ideas?
https://www.displayfusion.com/ScriptedFunctions/View/?ID=28e56bd4-5607-42c5-8486-01d7afa8e8a1 (purple highlight)
So if I bind...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
I didn't search here before I posted, but I find good script. <br/>
<br/>
Question: How do I toggle border color to go from Purple to None (or transparent) using hotkey? Any ideas?<br/>
<br/>
<a href="https://www.displayfusion.com/ScriptedFunctions/View/?ID=28e56bd4-5607-42c5-8486-01d7afa8e8a1" target="_blank" rel="nofollow"><b>https://www.displayfusion.com/ScriptedFunctions/View/?ID=28e56bd4-5607-42c5-8486-01d7afa8e8a1</b></a> (purple highlight)<br/>
<br/>
So if I bind hotkey, I can use same hotkey to remove border (toggle highlight).<br/>
<br/>
--- OLD QUESTION<br/>
<br/>
May you please help me? I wish to use Highlight Window and make it so DF remembers previous selected border color.<br/>
<br/>
<div class="Image"><a href="https://i.imgur.com/vYi52Xj.png" target="_blank" data-fancybox="" data-caption="https://i.imgur.com/vYi52Xj.png" HelpButtonData="https://i.imgur.com/vYi52Xj.png" HelpButtonDataAlign="BelowMiddle"><img src="https://i.imgur.com/vYi52Xj.png" alt="https://i.imgur.com/vYi52Xj.png" title=""></a></div><br/>
<br/>
Perhaps you already have a script you can share or maybe option exists but I ignore it.
</div>
]]></content:encoded>
</item>
</channel>
</rss>