<?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: Window Created trigger not activated for LINQPad 9</title>
<atom:link href="https://www.displayfusion.com/Discussions/RSS/?TopicID=019bcb80-1111-74a9-9847-6ce7d8f42502" rel="self" type="application/rss+xml" />
<link>https://www.displayfusion.com/Discussions/RSS/?TopicID=019bcb80-1111-74a9-9847-6ce7d8f42502</link>
<description>DisplayFusion RSS: Window Created trigger not activated for LINQPad 9</description>
<lastBuildDate>Thu, 21 May 2026 14:08:06 GMT</lastBuildDate>
<language>en</language>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<generator>https://www.displayfusion.com/Discussions/RSS/?TopicID=019bcb80-1111-74a9-9847-6ce7d8f42502</generator>
<item>
<title>RE: Window Created trigger not activated for LINQPad 9</title>
<link>https://www.displayfusion.com/Discussions/View/window-created-trigger-not-activated-for-linqpad-9/?ID=019bcb80-1111-74a9-9847-6ce7d8f42502#7</link>
<pubDate>Thu, 22 Jan 2026 18:30:27 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/window-created-trigger-not-activated-for-linqpad-9/?ID=019bcb80-1111-74a9-9847-6ce7d8f42502#7</guid>
<category>DisplayFusion</category>
<description><![CDATA[That's great.  Thanks very much for your help Owen.]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
That's great.  Thanks very much for your help Owen.
</div>
]]></content:encoded>
<media:thumbnail url="https://www.displayfusion.com/Discussions/Download/?ID=019bcb80-1b28-77aa-93ef-09fa45270370"/>
</item>
<item>
<title>RE: Window Created trigger not activated for LINQPad 9</title>
<link>https://www.displayfusion.com/Discussions/View/window-created-trigger-not-activated-for-linqpad-9/?ID=019bcb80-1111-74a9-9847-6ce7d8f42502#6</link>
<pubDate>Thu, 22 Jan 2026 17:04:14 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/window-created-trigger-not-activated-for-linqpad-9/?ID=019bcb80-1111-74a9-9847-6ce7d8f42502#6</guid>
<category>DisplayFusion</category>
<description><![CDATA[In the Advanced Settings, you can turn on "Disable Notification for Scripted Functions Running" and it should do that for you. You'll need to reboot DisplayFusion after adjusting that setting.]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
In the Advanced Settings, you can turn on "Disable Notification for Scripted Functions Running" and it should do that for you. You'll need to reboot DisplayFusion after adjusting that setting.
</div>
]]></content:encoded>
<media:thumbnail url="https://www.displayfusion.com/Discussions/Download/?ID=019bcb80-1b28-77aa-93ef-09fa45270370"/>
</item>
<item>
<title>RE: Window Created trigger not activated for LINQPad 9</title>
<link>https://www.displayfusion.com/Discussions/View/window-created-trigger-not-activated-for-linqpad-9/?ID=019bcb80-1111-74a9-9847-6ce7d8f42502#5</link>
<pubDate>Wed, 21 Jan 2026 18:53:47 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/window-created-trigger-not-activated-for-linqpad-9/?ID=019bcb80-1111-74a9-9847-6ce7d8f42502#5</guid>
<category>DisplayFusion</category>
<description><![CDATA[Thanks Owen, yes that works although as you point out the action gets taken every time.
That's a good insight and I think in that case I'll go for a scripted function so that I can just hit a shortcut when the results window opens.  I've got the following which works nicely.
Code
Copy
Select ...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Thanks Owen, yes that works although as you point out the action gets taken every time.<br/>
<br/>
That's a good insight and I think in that case I'll go for a scripted function so that I can just hit a shortcut when the results window opens.  I've got the following which works nicely.<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="#code019e4add6e6e7783b5d1deed7ac90bbf" 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('code019e4add6e6e7783b5d1deed7ac90bbfJs'); 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="code019e4add6e6e7783b5d1deed7ac90bbfJs" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%; min-height:75px;">public static class DisplayFusionFunction
{
    public static void Run(IntPtr windowHandle)
    {
        string title = BFS.Window.GetText(windowHandle);
        if (!title.StartsWith("LINQPad Results"))
        {
            BFS.Dialog.ShowMessageError($"Expected LINQPad Results window, got: {title}");
            return;
        }
        
        int x = 3840;
        int y = -12; // ignore my weird offset - will fix later
        int width = 1920;
        int height = 2112;
        
        BFS.Window.SetSizeAndLocation(windowHandle, x, y, width, height);
    }
}</pre><textarea id="code019e4add6e6e7783b5d1deed7ac90bbf" name="code019e4add6e6e7783b5d1deed7ac90bbf" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div><br/>
<br/>
Is it possible to supress the toast notification for the script?<br/>
<br/>
(I'll copy this explanation back to the LINQPad forum.)
</div>
]]></content:encoded>
<media:thumbnail url="https://www.displayfusion.com/Discussions/Download/?ID=019bcb80-1b28-77aa-93ef-09fa45270370"/>
</item>
<item>
<title>RE: Window Created trigger not activated for LINQPad 9</title>
<link>https://www.displayfusion.com/Discussions/View/window-created-trigger-not-activated-for-linqpad-9/?ID=019bcb80-1111-74a9-9847-6ce7d8f42502#4</link>
<pubDate>Wed, 21 Jan 2026 16:43:52 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/window-created-trigger-not-activated-for-linqpad-9/?ID=019bcb80-1111-74a9-9847-6ce7d8f42502#4</guid>
<category>DisplayFusion</category>
<description><![CDATA[Ah yeah, it's likely not sending a new "Window Created" event for us to fire off. You could use the "Window Focused" event instead, but it may have some unexpected results as it will fire each time the it's re-focused.]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Ah yeah, it's likely not sending a new "Window Created" event for us to fire off. You could use the "Window Focused" event instead, but it may have some unexpected results as it will fire each time the it's re-focused.
</div>
]]></content:encoded>
<media:thumbnail url="https://www.displayfusion.com/Discussions/Download/?ID=019bcb80-1b28-77aa-93ef-09fa45270370"/>
</item>
<item>
<title>RE: Window Created trigger not activated for LINQPad 9</title>
<link>https://www.displayfusion.com/Discussions/View/window-created-trigger-not-activated-for-linqpad-9/?ID=019bcb80-1111-74a9-9847-6ce7d8f42502#3</link>
<pubDate>Tue, 20 Jan 2026 19:05:55 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/window-created-trigger-not-activated-for-linqpad-9/?ID=019bcb80-1111-74a9-9847-6ce7d8f42502#3</guid>
<category>DisplayFusion</category>
<description><![CDATA[Hello Owen, Thanks for your reply.
That's interesting, I had assumed the process was mandatory for some reason.
Anyway, yes, just using 'Window Text' and a 5000ms delay does trigger and move the window, but it looks like it might be a first run thing rather than the timing.  If I close LINQPad ...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Hello Owen, Thanks for your reply.<br/>
<br/>
That's interesting, I had assumed the process was mandatory for some reason.<br/>
<br/>
Anyway, yes, just using 'Window Text' and a 5000ms delay does trigger and move the window, but it looks like it might be a first run thing rather than the timing.  If I close LINQPad (9) each time, reopen and undock the results window it behaves as expected everytime, even with 0 delay.  But if I just re-dock and undock again the window stays put. It's as if the event open event isn't fired, or not listened to, after the first undock.
</div>
]]></content:encoded>
<media:thumbnail url="https://www.displayfusion.com/Discussions/Download/?ID=019bcb80-1b28-77aa-93ef-09fa45270370"/>
</item>
<item>
<title>RE: Window Created trigger not activated for LINQPad 9</title>
<link>https://www.displayfusion.com/Discussions/View/window-created-trigger-not-activated-for-linqpad-9/?ID=019bcb80-1111-74a9-9847-6ce7d8f42502#2</link>
<pubDate>Tue, 20 Jan 2026 18:38:11 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/window-created-trigger-not-activated-for-linqpad-9/?ID=019bcb80-1111-74a9-9847-6ce7d8f42502#2</guid>
<category>DisplayFusion</category>
<description><![CDATA[If you try with just the Window Text match condition, and a higher "Delay before checking match condition" (try 5000ms), does that work?]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
If you try with just the Window Text match condition, and a higher "Delay before checking match condition" (try 5000ms), does that work?
</div>
]]></content:encoded>
<media:thumbnail url="https://www.displayfusion.com/Discussions/Download/?ID=019bcb80-1b28-77aa-93ef-09fa45270370"/>
</item>
<item>
<title>Window Created trigger not activated for LINQPad 9</title>
<link>https://www.displayfusion.com/Discussions/View/window-created-trigger-not-activated-for-linqpad-9/?ID=019bcb80-1111-74a9-9847-6ce7d8f42502</link>
<pubDate>Sat, 17 Jan 2026 10:28:47 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/window-created-trigger-not-activated-for-linqpad-9/?ID=019bcb80-1111-74a9-9847-6ce7d8f42502</guid>
<category>DisplayFusion</category>
<description><![CDATA[Hi,
I’m using Windows 11 (25H2 26200.7623) and DisplayFusion (12.0.1) and I’m trying to automate the size and position of the undocked LINQPad Results window for LINQPad 5 (5.52.01) and LINQPad 9 (9.5.10).
What I’m trying to do
I have three monitors arranged horizontally. I usually keep the ma...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Hi,<br/>
<br/>
I’m using <b>Windows 11 (25H2 26200.7623)</b> and <b>DisplayFusion (12.0.1)</b> and I’m trying to automate the size and position of the undocked LINQPad Results window for LINQPad 5 (5.52.01) and LINQPad 9 (9.5.10).<br/>
<br/>
What I’m trying to do<br/>
<br/>
I have three monitors arranged horizontally. I usually keep the main LINQPad window snapped to the right half of my middle monitor. When I click <i>Undock results</i>, LINQPad opens the Results window on the right (laptop) monitor at a default size/position. I then manually move/resize it each time.<br/>
<br/>
I want DisplayFusion to do this automatically when the Results window is created:<br/>
<br/>
* Detect the <b>undocked Results window</b> (not the main LINQPad window)<br/>
* Move it to the <b>same monitor as the main LINQPad window</b><br/>
* Resize and position it to fill the <b>left half</b> of that same middle monitor<br/>
<br/>
What I’ve tried<br/>
<br/>
I’ve tried a <b>Trigger &gt; Window Created</b> with conditions like:<br/>
<br/>
* Process: `LINQPad.exe` / `LINQPad9.exe` (depending on version)<br/>
* Window Title startswith: `LINQPad Results` (and other variations)<br/>
* Move Window to Specific Monitor<br/>
<br/>
Problems I’m hitting:<br/>
<br/>
* The above works perfectly for LINQPad 5, but not for LINQPad 9.<br/>
<br/>
I believe the Process Filename is correct for both and I can fire a notification for LINQPad 9 if I uncheck Window text, so my assumption is that the Window Text condition does not find a match. I have also tried using the text found by using the drag control over the results window for an exact match (ie not using BOL) but no luck with this for LINQPad 9 either. <br/>
<br/>
One difference between LINQPad 5 and 9 is that 5 uses Windows Forms, while 9 uses WPF. <br/>
<br/>
Is there anything obvious I should be checking?<br/>
<br/>
Attached are screenshots of the two triggers.<br/>
<br/>
https://forum.linqpad.net/discussion/3015/set-results-window-default-size-and-position<br/>
<br/>
Any guidance would be appreciated.<br/>
<br/>
Thanks<br/>
<br/>
John
</div>
]]></content:encoded>
<media:thumbnail url="https://www.displayfusion.com/Discussions/Download/?ID=019bcb80-1b28-77aa-93ef-09fa45270370"/>
</item>
</channel>
</rss>