Page 1 of 1

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

Posted: 03 Jun 2019 13:11
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

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

Posted: 03 Jun 2019 14:58
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

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

Posted: 12 Jun 2019 13:34
by cadu
Thank you very much for the directions @klownboy!