<?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 the z-Order Windows stacking -work-around?</title>
<atom:link href="https://www.displayfusion.com/Discussions/RSS/?TopicID=0192f5c8-5b94-76ca-8500-8f49da836ffb" rel="self" type="application/rss+xml" />
<link>https://www.displayfusion.com/Discussions/RSS/?TopicID=0192f5c8-5b94-76ca-8500-8f49da836ffb</link>
<description>DisplayFusion RSS: Save the z-Order Windows stacking -work-around?</description>
<lastBuildDate>Sun, 05 Apr 2026 17:15:47 GMT</lastBuildDate>
<language>en</language>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<generator>https://www.displayfusion.com/Discussions/RSS/?TopicID=0192f5c8-5b94-76ca-8500-8f49da836ffb</generator>
<item>
<title>RE: Save the z-Order Windows stacking -work-around?</title>
<link>https://www.displayfusion.com/Discussions/View/save-the-z-order-windows-stacking-work-around/?ID=0192f5c8-5b94-76ca-8500-8f49da836ffb#7</link>
<pubDate>Sat, 15 Feb 2025 22:12:11 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/save-the-z-order-windows-stacking-work-around/?ID=0192f5c8-5b94-76ca-8500-8f49da836ffb#7</guid>
<category>DisplayFusion</category>
<description><![CDATA[Finally circling back to this. Thanks Thomas.
I tried these out but while they verify they kind of bomb out. At least now I think I have enough for effectively playing with the code and troubleshooting.
Thank you very much.
{Sure wish I could get notifications from this forum -have not been ab...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Finally circling back to this. Thanks Thomas. <br/>
I tried these out but while they verify they kind of bomb out. At least now I think I have enough for effectively playing with the code and troubleshooting.<br/>
<br/>
Thank you very much.<br/>
<br/>
{Sure wish I could get notifications from this forum -have not been able to figure that one out since I joined up here.}
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Save the z-Order Windows stacking -work-around?</title>
<link>https://www.displayfusion.com/Discussions/View/save-the-z-order-windows-stacking-work-around/?ID=0192f5c8-5b94-76ca-8500-8f49da836ffb#6</link>
<pubDate>Mon, 27 Jan 2025 18:14:02 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/save-the-z-order-windows-stacking-work-around/?ID=0192f5c8-5b94-76ca-8500-8f49da836ffb#6</guid>
<category>DisplayFusion</category>
<description><![CDATA[Sorry, I missed the part where you said you were on DisplayFusion 9.9. Here's the two scripts again but modified to work with that version of DisplayFusion. You can import them the same way via the DisplayFusion Settings  Functions  Scripted Function  Import Scripted Function.]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Sorry, I missed the part where you said you were on DisplayFusion 9.9. Here's the two scripts again but modified to work with that version of DisplayFusion. You can import them the same way via the DisplayFusion Settings > Functions > Scripted Function > Import Scripted Function.
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Save the z-Order Windows stacking -work-around?</title>
<link>https://www.displayfusion.com/Discussions/View/save-the-z-order-windows-stacking-work-around/?ID=0192f5c8-5b94-76ca-8500-8f49da836ffb#5</link>
<pubDate>Sun, 26 Jan 2025 04:54:46 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/save-the-z-order-windows-stacking-work-around/?ID=0192f5c8-5b94-76ca-8500-8f49da836ffb#5</guid>
<category>DisplayFusion</category>
<description><![CDATA[Hmmm... trying the "save" script ...cannot figure out the compile error [exception]...
"The type or namespace name 'Json' does not exist in the namespace 'System.Text' (are you missing an assembly reference?)"
Its this line: BFS.ScriptSettings.WriteValue("WindowInfoList", System.Text.Json.JsonS...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Hmmm... trying the "save" script ...cannot figure out the compile error [exception]...<br/>
"The type or namespace name 'Json' does not exist in the namespace 'System.Text' (are you missing an assembly reference?)"<br/>
<br/>
Its this line: <div class="Inline"><pre>BFS.ScriptSettings.WriteValue("WindowInfoList", System.Text.Json.JsonSerializer.Serialize(windows));</pre></div><br/>
<br/>
I looked into perhaps adding the assembly somehow, but I think I'm a bit out of my depth ...solutions online are old stuff.<br/>
<br/>
Again, I am capped at Win7 64-bit, DF version 9.9 - <br/>
<br/>
Thanks for any insight with that.<br/>
R Twohawks
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Save the z-Order Windows stacking -work-around?</title>
<link>https://www.displayfusion.com/Discussions/View/save-the-z-order-windows-stacking-work-around/?ID=0192f5c8-5b94-76ca-8500-8f49da836ffb#4</link>
<pubDate>Sat, 25 Jan 2025 22:30:27 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/save-the-z-order-windows-stacking-work-around/?ID=0192f5c8-5b94-76ca-8500-8f49da836ffb#4</guid>
<category>DisplayFusion</category>
<description><![CDATA[Hey Thomas, I never was notifed of, or saw, your kind reply.
Thank you so much for the offered code!!
I will try it out in the coming week and post back how it worked.
R Twohawks]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Hey Thomas, I never was notifed of, or saw, your kind reply.<br/>
Thank you so much for the offered code!!<br/>
I will try it out in the coming week and post back how it worked.<br/>
R Twohawks
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Save the z-Order Windows stacking -work-around?</title>
<link>https://www.displayfusion.com/Discussions/View/save-the-z-order-windows-stacking-work-around/?ID=0192f5c8-5b94-76ca-8500-8f49da836ffb#3</link>
<pubDate>Fri, 15 Nov 2024 20:16:48 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/save-the-z-order-windows-stacking-work-around/?ID=0192f5c8-5b94-76ca-8500-8f49da836ffb#3</guid>
<category>DisplayFusion</category>
<description><![CDATA[I've attached two scripts below that should do this. You can import them via the DisplayFusion Settings  Functions  Scripted Function  Import Scripted Function.
These scripts save and restore the window positions and z order by their handles, so the scripts won't work between restarts, or if the...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
I've attached two scripts below that should do this. You can import them via the DisplayFusion Settings > Functions > Scripted Function > Import Scripted Function.<br/>
<br/>
These scripts save and restore the window positions and z order by their handles, so the scripts won't work between restarts, or if the window gets destroyed and recreated (ie closing and reopening a program).
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Save the z-Order Windows stacking -work-around?</title>
<link>https://www.displayfusion.com/Discussions/View/save-the-z-order-windows-stacking-work-around/?ID=0192f5c8-5b94-76ca-8500-8f49da836ffb#2</link>
<pubDate>Tue, 05 Nov 2024 18:08:25 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/save-the-z-order-windows-stacking-work-around/?ID=0192f5c8-5b94-76ca-8500-8f49da836ffb#2</guid>
<category>DisplayFusion</category>
<description><![CDATA[Thanks for the kind words!
We'll see if we can come up with something here and let you know.]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Thanks for the kind words! <br/>
<br/>
We'll see if we can come up with something here and let you know.
</div>
]]></content:encoded>
</item>
<item>
<title>Save the z-Order Windows stacking -work-around?</title>
<link>https://www.displayfusion.com/Discussions/View/save-the-z-order-windows-stacking-work-around/?ID=0192f5c8-5b94-76ca-8500-8f49da836ffb</link>
<pubDate>Mon, 04 Nov 2024 06:06:42 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.displayfusion.com/Discussions/View/save-the-z-order-windows-stacking-work-around/?ID=0192f5c8-5b94-76ca-8500-8f49da836ffb</guid>
<category>DisplayFusion</category>
<description><![CDATA[Since this is practically my first post, the first thing I wish to do is thank the developers and staff, and community for this delightful project and product ...thank you.
I am trying out DisplayFusion with the following limitations...
- Win7 64-bit, DF version 9.9 -
...so I have been tweakin...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Since this is practically my first post, the first thing I wish to do is thank the developers and staff, and community for this delightful project and product ...thank you.<br/>
<br/>
I am trying out DisplayFusion with the following limitations...<br/>
 - Win7 64-bit, DF version 9.9 - <br/>
...so I have been tweaking around with some of the function scripts to see how I may be able to tame it enough for serving me in my environment.<br/>
<br/>
<b>Problem/Challenge:</b> I would like to save the Z-Order of Windows (specified Window Groups) when saving window positions ...which <i>I understand is not directly possible</i>.<br/>
<br/>
I have messed around a bit (green-horn style) with scripts from Keith Lammers, diceblue96915, Thomas Malloch (and perhaps some others -thank you folks!) ...for Swapping Windows in various states between monitors ...KEEPING THE Z-ORDER ...and finally got that licked in spite of limitations in the depracated BFS framework available on my platform (or whatever the limitation actually may be - it may be the older DF App, I do not know enough to really know).<br/>
<br/>
WHAT I WANT TO KNOW IS....<br/>
...how might it be possible, using a script (some script code snippet and method), after looping through the targetted windows and parsing out their info for the Monitor Swap of a selection of windows, which parses the z-order along with postions ...to SAVE THAT for REUSE LATER?<br/>
    <b>Envisioned Procedure:</b> I would call the script for iterating a targetted group of windows (I know how to do that), SAVING the Z-Order with their positions (don't know how to save that).  THEN LATER, when the positions get all screwed up (inevitable/inescapable reality), I would like to call a Script <i>employing that data</i>, for Restoring those Windows along with that Z-Order.<br/>
    <br/>
If anyone has any ideas how to approach this problem, I am eager to hear your ideas.<br/>
<br/>
Thank you very much.<br/>
R Twohawks
</div>
]]></content:encoded>
</item>
</channel>
</rss>