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, it seems
Restore Window Positions from Last Save (ignore minimized windows) was added in
version 9.7.
-------------------------------------------------------------------------
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?
The
Command Line Tool help has this example:
Quote:
DisplayFusionCommand.exe -functionrun "Start Screen Saver"
Runs the built-in DisplayFusion Function that starts the Screen Saver
Is that how you're trying to use them?
i.e.:
DisplayFusionCommand.exe -functionrun "Save Window Positions"
DisplayFusionCommand.exe -functionrun "Restore Window Positions From Last Save"
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)
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
DisplayFusionCommand.exe which you are providing, or the syntax?
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...
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
this, 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...