Is there a user command to run specific layout window directly?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
cadu
Posts: 287
Joined: 18 Mar 2012 21:50

Is there a user command to run specific layout window directly?

Post by cadu »

Hello,

I'd appreciate help. Currently, when I need to change a layout window I need to use command #672, then pick a layout from the pop-up window.

Is there a user command to run a specific layout window directly?
By specific I mean: <xypath>\Data\Layouts\Mini.txt

Thanks for the assistance,
Carlos

klownboy
Posts: 4109
Joined: 28 Feb 2012 19:27

Re: Is there a user command to run specific layout window directly?

Post by klownboy »

Yes, use the SC loadlayout. See examples in the help file under scripting commands. You can save your layouts using SC loadlayout. They are simply saved as text files. You can then open them using the loadlayout command as well. I'd recommend saving them in a "layouts" folder under XYplorer's data folder. Also readup on SC setlayout.

Code: Select all

loadlayout("Normal"); //loads layout from <xydata>\Layouts\Normal.txt
loadlayout("Preview", "save"); //saves layout to <xydata>\Layouts\Preview.txt
Windows 11, 22H2 Build 22621.1555 at 100% 2560x1440

cadu
Posts: 287
Joined: 18 Mar 2012 21:50

Re: Is there a user command to run specific layout window directly?

Post by cadu »

Thank you very much for the directions @klownboy!

Post Reply