Page 1 of 1

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

Posted: 08 Oct 2019 08:48
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?

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

Posted: 08 Oct 2019 08:54
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;

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

Posted: 08 Oct 2019 08:58
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;