<?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: Save/restore window positions between monitor count changes?</title>
<atom:link href="https://www.displayfusion.com/Discussions/RSS/?TopicID=4b283f49-46d6-4b29-9212-590ae6bd612d" rel="self" type="application/rss+xml" />
<link>https://www.displayfusion.com/Discussions/RSS/?TopicID=4b283f49-46d6-4b29-9212-590ae6bd612d</link>
<description>DisplayFusion RSS: Save/restore window positions between monitor count changes?</description>
<lastBuildDate>Sun, 19 Apr 2026 16:42:12 GMT</lastBuildDate>
<language>en</language>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<generator>https://www.displayfusion.com/Discussions/RSS/?TopicID=4b283f49-46d6-4b29-9212-590ae6bd612d</generator>
<item>
<title>RE: Save/restore window positions between monitor count changes?</title>
<link>https://www.displayfusion.com/Discussions/View/saverestore-window-positions-between-monitor-count-changes/?ID=4b283f49-46d6-4b29-9212-590ae6bd612d#3</link>
<pubDate>Sun, 26 Jul 2020 02:28:56 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/saverestore-window-positions-between-monitor-count-changes/?ID=4b283f49-46d6-4b29-9212-590ae6bd612d#3</guid>
<category>DisplayFusion</category>
<description><![CDATA[Both of those functions show up in my list of included (built-in) functions, in the Settings-Functions-|-Window Management section. The list includes Save Window Positions and Restore Window Positions From Last Save
I'm using version 9.7.1 Beta 2, and, incidentally, according to the Change Log, ...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Both of those functions show up in my list of included (built-in) functions, in the <i>Settings-Functions-|-Window Management</i> section. The list includes <i>Save Window Positions</i> and <i>Restore Window Positions From Last Save</i><br/>
<br/>
I'm using <i>version 9.7.1 Beta 2</i>, and, incidentally, according to <a href="https://www.displayfusion.com/ChangeLog/" target="_blank" rel="nofollow"><b>the Change Log</b></a>, it seems <i>Restore Window Positions from Last Save (ignore minimized windows)</i> was added in <i>version 9.7</i>.<br/>
-------------------------------------------------------------------------<br/>
<br/>
But now I read your post again, it seems you've already found them and they just don't work in the way you are trying to use them?<br/>
<br/>
The <a href="https://www.displayfusion.com/Discussions/View/displayfusion-command-line-tool-displayfusioncommandexe/?ID=06d90ec9-5e5a-4be2-8540-6b52fbb4536e" target="_blank" rel="nofollow"><b>Command Line Tool help</b></a> has this example:<br/>
<div class="BackGrey"><div class="Text"><div><b>Quote:</b></div>DisplayFusionCommand.exe -functionrun "Start Screen Saver"<br/>
<i>Runs the built-in DisplayFusion Function that starts the Screen Saver</i></div></div><br/>
Is that how you're trying to use them?<br/>
<br/>
i.e.:<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="#code019da69f05ce76df91bdb6b07c841abf" 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('code019da69f05ce76df91bdb6b07c841abfJs'); 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="code019da69f05ce76df91bdb6b07c841abfJs" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%; min-height:75px;">DisplayFusionCommand.exe -functionrun "Save Window Positions"</pre><textarea id="code019da69f05ce76df91bdb6b07c841abf" name="code019da69f05ce76df91bdb6b07c841abf" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div><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="#code019da69f05d171e2827780ec92870633" 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('code019da69f05d171e2827780ec92870633Js'); 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="code019da69f05d171e2827780ec92870633Js" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%; min-height:75px;">DisplayFusionCommand.exe -functionrun "Restore Window Positions From Last Save"</pre><textarea id="code019da69f05d171e2827780ec92870633" name="code019da69f05d171e2827780ec92870633" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div><br/>
<br/>
I just tested those (copied and pasted from this post) from a Windows command prompt issued in the Display Fusion program files directory, and they did indeed save and restore my window positions (I moved a couple of windows after issuing the first command and they were moved back by the second one)<br/>
<br/>
Maybe it's just a "path" issue, and you should either have your script 'change' to that directory first, include the Display Fusion program directory in the path your script uses, or just check the path to <i>DisplayFusionCommand.exe</i> which you are providing, or the syntax? <br/>
<br/>
I'm not really familiar with your "autohotkey" tool and exactly how its scripts work (I tend to use Windows 'native' scripting or knock something up in VS), so I don't know how you're specifying path/executable/parameters in it - but I can, at least, confirm that the bare commands seem to work fine "out of the box" when run manually (without "downloading" or "activating" anything), on my installation anyway...<br/>
<br/>
One other thought - you can actually assign a key-combination to the function(s) in the DisplayFusion function list in your DF settings. If, for some reason, passing the correct path/executable/parameters is problematical then maybe your tool would more easily just issue a key-combination of your choice to trigger the function(s) externally? (A quick search finds <a href="https://www.autohotkey.com/docs/commands/Send.htm" target="_blank" rel="nofollow"><b>this</b></a>, which may or may not not be relevant to your situation). Again, I'm not familiar with your tool so I'm not sure if that would help - just sharing a thought...
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Save/restore window positions between monitor count changes?</title>
<link>https://www.displayfusion.com/Discussions/View/saverestore-window-positions-between-monitor-count-changes/?ID=4b283f49-46d6-4b29-9212-590ae6bd612d#2</link>
<pubDate>Sat, 25 Jul 2020 18:38:11 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/saverestore-window-positions-between-monitor-count-changes/?ID=4b283f49-46d6-4b29-9212-590ae6bd612d#2</guid>
<category>DisplayFusion</category>
<description><![CDATA[Doesn't seem to be working. Do I need to find and activate these functions: "Save Window Positions" and "Restore Window Positions From Last Save"? Can't find them in the Download Pre-Made Function list.]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Doesn't seem to be working. Do I need to find and activate these functions: "Save Window Positions" and "Restore Window Positions From Last Save"? Can't find them in the Download Pre-Made Function list.
</div>
]]></content:encoded>
</item>
<item>
<title>Save/restore window positions between monitor count changes?</title>
<link>https://www.displayfusion.com/Discussions/View/saverestore-window-positions-between-monitor-count-changes/?ID=4b283f49-46d6-4b29-9212-590ae6bd612d</link>
<pubDate>Fri, 24 Jul 2020 14:38:52 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/saverestore-window-positions-between-monitor-count-changes/?ID=4b283f49-46d6-4b29-9212-590ae6bd612d</guid>
<category>DisplayFusion</category>
<description><![CDATA[I have two monitors connected to my laptop for a total of 3 screens. When I close my laptop lid, only the two remaining screens remain active. When I open back the laptop lid, it's back to 3 screens but all my window positions are moved to the laptop screen.
Is there an automated way to save my ...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
I have two monitors connected to my laptop for a total of 3 screens. When I close my laptop lid, only the two remaining screens remain active. When I open back the laptop lid, it's back to 3 screens but all my window positions are moved to the laptop screen.<br/>
<br/>
Is there an automated way to save my window positions when it's 3 screens and then restore those positions after the screen count returns back to 3 screens?<br/>
<br/>
Since I'm not just switching monitor profiles but actually effectively removing a screen, I can't use a profile change to trigger saving the window positions as that would be after the fact.<br/>
<br/>
I'm currently testing an autohotkey 5-minute loop that runs the displayfusioncommand "Save Window Positions" when there are 3 monitors and then run "Restore Window Positions From Last Save" whenever the monitor count goes below 3 and then back to 3. But I'm checking to see if DF has an internal way to do this.
</div>
]]></content:encoded>
</item>
</channel>
</rss>