"Reuse" script in CTB
Posted: 06 May 2015 19:17
I have some CTBs on my toolbar, each one loading a particular multi-script in <xyscripts>. Each button is configured asBasically, 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.
Code: Select all
L. click: load "Multi-script of CTB # x", "Left click script";
R. click: load "Multi-script of CTB # x";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.