How to run a script in/for both panes at the same time

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
selukwe
Posts: 162
Joined: 02 Apr 2012 14:10
Location: Windows 11 Pro 25H2, Screen scaling: 100%, latest XYplorer version (x64), updated daily.

How to run a script in/for both panes at the same time

Post by selukwe »

To close all other unlocked tabs and to save the XY's configuration I created a button on the toolbar with the following script:

#352; #193;

This does the job perfectly for the active tab. But is there some trick how to extend this to both tabs at the same time, with just one click?

jupe
Posts: 3292
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: How to run a script in/for both panes at the same time

Post by jupe »

Code: Select all

#352; focus "PI"; #352; #193;
You may want to extend this to make sure to select the correct tab you want to keep in the inactive pane. Other SC commands you might want to peruse in the help are seltab; tab;

selukwe
Posts: 162
Joined: 02 Apr 2012 14:10
Location: Windows 11 Pro 25H2, Screen scaling: 100%, latest XYplorer version (x64), updated daily.

Re: How to run a script in/for both panes at the same time

Post by selukwe »

Fantastic! Works like a charm :)

Many thanks, jupe.

I just made a small improvement for the focus to remain in the active pane:

#352; focus "PI"; #352; focus "PI"; #193;

Post Reply