"Reuse" script in CTB

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
Marco
Posts: 2354
Joined: 27 Jun 2011 15:20

"Reuse" script in CTB

Post by Marco »

I have some CTBs on my toolbar, each one loading a particular multi-script in <xyscripts>. Each button is configured as

Code: Select all

L. click: load "Multi-script of CTB # x", "Left click script";
R. click: load "Multi-script of CTB # x";
Basically, I want the left click to perform a default action stored in the multi-script, and the right click to popup a list of all the possible actions the multi-script can perform.

Now I'd like to shift to a configuration where each script is saved within the CTB itself: less files scattered around the system, everything is loaded in memory upon XY startup and so it should be slightly faster, things like that.

HOWEVER, it seems to me that the entries for the left and right click are truly separated. I mean, there's no way (apparently) that I can save only once a multi-script that can be accessed/shared by both left and right clicks the way I described above. Why the emphasis on "only once"? Because scripts must be updated every now and then. And keeping two thing updated and synchronized is more difficult and error prone than managing only one thing (at least in my experience).

So, I'd like to know if my analysis is correct or not, or maybe I missed something.
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

Post Reply