<?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: Need some help with window positioning/saving</title>
<atom:link href="https://www.displayfusion.com/Discussions/RSS/?TopicID=b3d9614a-ef4b-48fb-87d7-487c0922c39a" rel="self" type="application/rss+xml" />
<link>https://www.displayfusion.com/Discussions/RSS/?TopicID=b3d9614a-ef4b-48fb-87d7-487c0922c39a</link>
<description>DisplayFusion RSS: Need some help with window positioning/saving</description>
<lastBuildDate>Wed, 08 Apr 2026 03:10:39 GMT</lastBuildDate>
<language>en</language>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<generator>https://www.displayfusion.com/Discussions/RSS/?TopicID=b3d9614a-ef4b-48fb-87d7-487c0922c39a</generator>
<item>
<title>RE: Need some help with window positioning/saving</title>
<link>https://www.displayfusion.com/Discussions/View/need-some-help-with-window-positioningsaving/?ID=b3d9614a-ef4b-48fb-87d7-487c0922c39a#5</link>
<pubDate>Tue, 31 Jan 2017 21:14:48 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/need-some-help-with-window-positioningsaving/?ID=b3d9614a-ef4b-48fb-87d7-487c0922c39a#5</guid>
<category>DisplayFusion</category>
<description><![CDATA[Everything seems to be working as it should right now. Thanks again Keith!]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Everything seems to be working as it should right now. Thanks again Keith!
</div>
]]></content:encoded>
<media:thumbnail url="https://www.displayfusion.com/Discussions/Download/?ID=6c0218b0-ec8f-48e9-b58b-584180ea4c3c"/>
</item>
<item>
<title>RE: Need some help with window positioning/saving</title>
<link>https://www.displayfusion.com/Discussions/View/need-some-help-with-window-positioningsaving/?ID=b3d9614a-ef4b-48fb-87d7-487c0922c39a#4</link>
<pubDate>Tue, 31 Jan 2017 20:45:53 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/need-some-help-with-window-positioningsaving/?ID=b3d9614a-ef4b-48fb-87d7-487c0922c39a#4</guid>
<category>DisplayFusion</category>
<description><![CDATA[It should, yep! That's how I have mine setup and it works great]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
It should, yep! That's how I have mine setup and it works 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>
<media:thumbnail url="https://www.displayfusion.com/Discussions/Download/?ID=6c0218b0-ec8f-48e9-b58b-584180ea4c3c"/>
</item>
<item>
<title>RE: Need some help with window positioning/saving</title>
<link>https://www.displayfusion.com/Discussions/View/need-some-help-with-window-positioningsaving/?ID=b3d9614a-ef4b-48fb-87d7-487c0922c39a#3</link>
<pubDate>Mon, 30 Jan 2017 20:54:28 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/need-some-help-with-window-positioningsaving/?ID=b3d9614a-ef4b-48fb-87d7-487c0922c39a#3</guid>
<category>DisplayFusion</category>
<description><![CDATA[Sorry for the late reply. Thanks a ton!
Actually an additional question. With the triggers, if I set it to "desktop locked" for save windows positions, will that actually work since the trigger activates after the desktop get locked?]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Sorry for the late reply. Thanks a ton!<br/>
<br/>
Actually an additional question. With the triggers, if I set it to "desktop locked" for save windows positions, will that actually work since the trigger activates after the desktop get locked?
</div>
]]></content:encoded>
<media:thumbnail url="https://www.displayfusion.com/Discussions/Download/?ID=6c0218b0-ec8f-48e9-b58b-584180ea4c3c"/>
</item>
<item>
<title>RE: Need some help with window positioning/saving</title>
<link>https://www.displayfusion.com/Discussions/View/need-some-help-with-window-positioningsaving/?ID=b3d9614a-ef4b-48fb-87d7-487c0922c39a#2</link>
<pubDate>Mon, 23 Jan 2017 21:01:20 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/need-some-help-with-window-positioningsaving/?ID=b3d9614a-ef4b-48fb-87d7-487c0922c39a#2</guid>
<category>DisplayFusion</category>
<description><![CDATA[For the BFS.Window.MoveToMonitorMaximized(1, windowHandle); line, you can use 101 for the top split, and 102 for the bottom split
Regarding the restore of the window positions, you can indeed use the "Desktop Unlocked" Trigger. It will only fire once when the desktop is unlocked]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
For the BFS.Window.MoveToMonitorMaximized(1, windowHandle); line, you can use 101 for the top split, and 102 for the bottom split <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/>
Regarding the restore of the window positions, you can indeed use the "Desktop Unlocked" Trigger. It will only fire once when the desktop is unlocked <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>
<media:thumbnail url="https://www.displayfusion.com/Discussions/Download/?ID=6c0218b0-ec8f-48e9-b58b-584180ea4c3c"/>
</item>
<item>
<title>Need some help with window positioning/saving</title>
<link>https://www.displayfusion.com/Discussions/View/need-some-help-with-window-positioningsaving/?ID=b3d9614a-ef4b-48fb-87d7-487c0922c39a</link>
<pubDate>Mon, 23 Jan 2017 04:01:02 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/need-some-help-with-window-positioningsaving/?ID=b3d9614a-ef4b-48fb-87d7-487c0922c39a</guid>
<category>DisplayFusion</category>
<description><![CDATA[Hello,
This is going to get a bit long, so please just bear with me. I have included what my current setup looks like, as well as the splits that I use. (Primary Monitor #2 : 2560x1440 vertical split down middle. Secondary Monitor #1 1200x1920 horizontal split across middle)
I have already used...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Hello,<br/>
<br/>
This is going to get a bit long, so please just bear with me. I have included what my current setup looks like, as well as the splits that I use. (Primary Monitor #2 : 2560x1440 vertical split down middle. Secondary Monitor #1 1200x1920 horizontal split across middle)<br/>
<br/>
I have already used window location functions/trigger for most of the windows shown in the attachments, so those are fine. <br/>
<br/>
However, with the program (Chrome browser) that I want a different window on each window, I have modified the "Open Chrome on 2 monitors" <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="#code019d6b120fd3722db5ee0c716734a3f8" 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('code019d6b120fd3722db5ee0c716734a3f8Js'); 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="code019d6b120fd3722db5ee0c716734a3f8Js" 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)
{
// Update the URLs in the strings below
string website1 = "https://www.google.com";
string website2 = "https://www.displayfusion.com";

// Open website1 on monitor 1
windowHandle = BFS.Web.OpenUrlNewWindow(website1);
BFS.Window.MoveToMonitorMaximized(2, windowHandle);

// Open website2 on monitor 2
windowHandle = BFS.Web.OpenUrlNewWindow(website2);
???????????//BFS.Window.MoveToMonitorMaximized(1, windowHandle);
BFS.Window.MoveToNextMonitor(windowHandle);
BFS.Window.MoveToNextMonitorMaximized(windowHandle);
}
}</pre><textarea id="code019d6b120fd3722db5ee0c716734a3f8" name="code019d6b120fd3722db5ee0c716734a3f8" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div><br/>
So the line that I have marked <img src="https://www.displayfusion.com/MediaCommon/SVGs/FontAwesome/face-grimace.light.svg" alt="???" style="box-sizing:border-box;position:relative;overflow:hidden;vertical-align:middle !important;width:16px;height:16px;" HelpButtonData="???" HelpButtonDataAlign="BelowMiddle" /><img src="https://www.displayfusion.com/MediaCommon/SVGs/FontAwesome/face-grimace.light.svg" alt="???" style="box-sizing:border-box;position:relative;overflow:hidden;vertical-align:middle !important;width:16px;height:16px;" HelpButtonData="???" HelpButtonDataAlign="BelowMiddle" /><img src="https://www.displayfusion.com/MediaCommon/SVGs/FontAwesome/face-grimace.light.svg" alt="???" style="box-sizing:border-box;position:relative;overflow:hidden;vertical-align:middle !important;width:16px;height:16px;" HelpButtonData="???" HelpButtonDataAlign="BelowMiddle" />?? doesn't work in that I can't seem to get the correct monitorID of the 1200x1920 monitor. Is this due to my custom monitor split or something? I have currently bypassed it through means of the last two lines of code, but I would rather have the monitorID part working for future/other scripts. <br/>
<br/>
<b>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</b><br/>
<br/>
So the next part is that I always lock the computer rather than put it to sleep, and the Chrome window on the left always moves around a bit once I come back. I've looked into the Save/Restore Window Positions through the pre-made scripts and most notably saw the "Save Window Positions and Lock Desktop" script which seemed to fit my needs. However, rather than having to use some keybinds after every unlock to restore the Window Positions, is there a way to detect the desktop getting unlocked and automating a restore Window Position? I see that there is the line of "BFS.General.IsDesktopLocked" to check if the desktop is currently locked, but I am unsure how to use it to automate Windows Position Restore (if automation is even possible). <br/>
<br/>
EDIT: Does the Trigger "Desktop unlocked" work just when the desktop gets unlocked or is it continuous as the desktop is unlocked? This might be able to solve my second problem.<br/>
<br/>
Thank you for any help. Displayfusion has saved me from menial and repetitive tasks for a long time now. I can't live without it anymore.
</div>
]]></content:encoded>
<media:thumbnail url="https://www.displayfusion.com/Discussions/Download/?ID=6c0218b0-ec8f-48e9-b58b-584180ea4c3c"/>
</item>
</channel>
</rss>