<?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: Triggers Scripted Function (Bring all windows of the same type to foreground when one is focused help request)</title>
<atom:link href="https://www.displayfusion.com/Discussions/RSS/?TopicID=206d9bc9-a035-481e-9f27-b7da62fc5571" rel="self" type="application/rss+xml" />
<link>https://www.displayfusion.com/Discussions/RSS/?TopicID=206d9bc9-a035-481e-9f27-b7da62fc5571</link>
<description>DisplayFusion RSS: Triggers Scripted Function (Bring all windows of the same type to foreground when one is focused help request)</description>
<lastBuildDate>Fri, 03 Apr 2026 21:56:52 GMT</lastBuildDate>
<language>en</language>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<generator>https://www.displayfusion.com/Discussions/RSS/?TopicID=206d9bc9-a035-481e-9f27-b7da62fc5571</generator>
<item>
<title>RE: Triggers Scripted Function (Bring all windows of the same type to foreground when one is focused help request)</title>
<link>https://www.displayfusion.com/Discussions/View/triggers-scripted-function-bring-all-windows-of-the-same-type-to-foreground-when-one-is-focused-help-request/?ID=206d9bc9-a035-481e-9f27-b7da62fc5571#4</link>
<pubDate>Mon, 13 Nov 2017 18:30:13 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/triggers-scripted-function-bring-all-windows-of-the-same-type-to-foreground-when-one-is-focused-help-request/?ID=206d9bc9-a035-481e-9f27-b7da62fc5571#4</guid>
<category>DisplayFusion</category>
<description><![CDATA[Ok, try this out
Code
Copy
Select All
using System;
using System.Drawing;
public static class DisplayFusionFunction
{
public static void Run(IntPtr windowHandle)
{
foreach (IntPtr window in BFS.Window.GetAllWindowHandles())
{
if (BFS.Window.GetText(window).StartsWith("Eve - "))
{
BF...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Ok, try this out <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/>
<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="#code019d5559588e744eb184023e5f66735d" 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('code019d5559588e744eb184023e5f66735dJs'); 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="code019d5559588e744eb184023e5f66735dJs" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%; min-height:75px;">using System;
using System.Drawing;

public static class DisplayFusionFunction
{
public static void Run(IntPtr windowHandle)
{
        foreach (IntPtr window in BFS.Window.GetAllWindowHandles())
        {
            if (BFS.Window.GetText(window).StartsWith("Eve - "))
            {
                BFS.Window.Focus(window);
            }
        }        
}
}</pre><textarea id="code019d5559588e744eb184023e5f66735d" name="code019d5559588e744eb184023e5f66735d" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div>
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Triggers Scripted Function (Bring all windows of the same type to foreground when one is focused help request)</title>
<link>https://www.displayfusion.com/Discussions/View/triggers-scripted-function-bring-all-windows-of-the-same-type-to-foreground-when-one-is-focused-help-request/?ID=206d9bc9-a035-481e-9f27-b7da62fc5571#3</link>
<pubDate>Sat, 11 Nov 2017 13:33:37 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/triggers-scripted-function-bring-all-windows-of-the-same-type-to-foreground-when-one-is-focused-help-request/?ID=206d9bc9-a035-481e-9f27-b7da62fc5571#3</guid>
<category>DisplayFusion</category>
<description><![CDATA[If you could do that, that would be great]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
If you could do that, that would be great <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" />
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Triggers Scripted Function (Bring all windows of the same type to foreground when one is focused help request)</title>
<link>https://www.displayfusion.com/Discussions/View/triggers-scripted-function-bring-all-windows-of-the-same-type-to-foreground-when-one-is-focused-help-request/?ID=206d9bc9-a035-481e-9f27-b7da62fc5571#2</link>
<pubDate>Fri, 10 Nov 2017 19:15:30 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/triggers-scripted-function-bring-all-windows-of-the-same-type-to-foreground-when-one-is-focused-help-request/?ID=206d9bc9-a035-481e-9f27-b7da62fc5571#2</guid>
<category>DisplayFusion</category>
<description><![CDATA[The problem with doing that on a Window Restored Trigger would be that it would just constantly loop, because you'd click to restore, the Trigger would fire, which would run the script that restores the other windows, and then the Trigger would fire for those windows, etc etc.
I can help write t...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
The problem with doing that on a Window Restored Trigger would be that it would just constantly loop, because you'd click to restore, the Trigger would fire, which would run the script that restores the other windows, and then the Trigger would fire for those windows, etc etc.<br/>
<br/>
I can help write the scripted function that would restore all four windows, but you'd need to run it via a hotkey instead of automatically when restoring. If that sounds like it will work for you, let me 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>Triggers Scripted Function (Bring all windows of the same type to foreground when one is focused help request)</title>
<link>https://www.displayfusion.com/Discussions/View/triggers-scripted-function-bring-all-windows-of-the-same-type-to-foreground-when-one-is-focused-help-request/?ID=206d9bc9-a035-481e-9f27-b7da62fc5571</link>
<pubDate>Tue, 07 Nov 2017 22:27:22 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/triggers-scripted-function-bring-all-windows-of-the-same-type-to-foreground-when-one-is-focused-help-request/?ID=206d9bc9-a035-481e-9f27-b7da62fc5571</guid>
<category>DisplayFusion</category>
<description><![CDATA[I'm trying to get so if I click a Eve Online window, all Eve Online clients will come to the foreground/ontop (So no other windows are over them). I have 4 clients, and they would each have a unique name.
I tried to do this myself, but I don't know the syntax of either C# or Visual basic.
Code...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
I'm trying to get so if I click a Eve Online window, all Eve Online clients will come to the foreground/ontop (So no other windows are over them). I have 4 clients, and they would each have a unique name.<br/>
<br/>
I tried to do this myself, but I don't know the syntax of either C# or Visual basic.<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="#code019d555958a17371af24113a1ccb035d" 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('code019d555958a17371af24113a1ccb035dJs'); 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="code019d555958a17371af24113a1ccb035dJs" 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.IsRestored Run(BFS.Window.Focus(BFS.Window.GetWindowByText("Eve - Client1");BFS.Window.GetWindowByText("Eve - Client2");BFS.Window.GetWindowByText("Eve - Client3");BFS.Window.GetWindowByText("Eve - Client4"))
    }</pre><textarea id="code019d555958a17371af24113a1ccb035d" name="code019d555958a17371af24113a1ccb035d" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div>
</div>
]]></content:encoded>
</item>
</channel>
</rss>