Don recently issued beta v25.50.0103 which gave us a method to change the assigned script used for CEAs. That beta basically negates the method used in earlier version of this script. The earlier script used a variable as the assigned script file and by changing the variable value to another script, changed the CEA action.
In the new script I've opted for a common menu used for the tree, list, tab, and breadcrumb Double-Click on White CEAs. This script is only used for CEA script files, not the common CEA actions like "back" or "go up" or actual scripts, etc. Obviously my script files used will not be yours. So again this is an example script that you have to modify to designate your own script files. Using a common script menu (i.e., the same menu for each of the CEA Double-Click White areas) also simplifies entering you own script files instead of mine.
Not a huge deal obviously since it's not something you'd be using that often. You can go into Configuration > CEAs and change the script files, but it does make doing that significantly easier and quicker once you supply the script file names.
It's set up to only use the script file basename (e.g., SessionManager not SessionManager.xys or <xyscripts>\SessionManager).
The common menu which must be modified for your CEA script files.
Common menu layout:
Script title to display;<->Script base filename (no folder or extension);icon
Example:
Code: Select all
$commonMENU = <<<MENU
Session Manager;<->SessionManager;:tabsets
Vertical Toolbar;<->vTB;<xyicons>\panel(03a).ico
Tabs Home;<->TabsHomeCloseRightofRoaming;:home
XY Menu;<->XYmenu_NESTED;<xyicons>\Combined\XY_Application Folder.ico
WhiteSpaceDoubleClick;<->CEA_WSDC;:favs
MENU;
OLD version:
This script is a rather simple idea. It allows the user to assign various scripts to your CEA Double Click on White Space for the List and Tree. One click on the menu item and you've changed your Double Click on white action. If you ever thought at some point it would be nice if I could do "this" instead of "that" when you double click on white, you may get some use out of it. Of course you could do the same with the right click and middle click as well. In lieu of this, you could do something similar, and I have, with a single script that can do multiple actions.
If you weren't around 5 years ago viewtopic.php?f=5&t=13508&start=30#p119602 or just forgot like me, the idea came from the fact that you can assign a perm variable in XYplorer's ini file for the CEA script which means you can change that script on the fly. Granted as I mentioned above, you could perform something similar in one script with different assignments, but this does make for a rather quick and simple method to change your CEA script assignments.
The script is really only an example script. Everyone has different ideas on what to assign to these CEAs. You'll have to edit the script variable, $DCmenu used in SC popupmenu to assign your own scripts, captions and icons.
The first section (see the script), which I have commented out, will automatically assign the variables to the Double Click on white for the tree and list in XYplorer.ini, but you'll have to uncomment the section. If you'd rather edit XYplorer.ini file manually, you can, by making the tweaks in Comment Section 2 and leave both Comment Section 1 and 2 commented out. If you use section 1, you can leave it uncommented if you want, the script will skip over the CEA assignments once it's done initially. Once the variables are assigned you could delete both comment sections.
Since Don recently added additional CEAs, I thought some use might be made of this. As I mentioned you could have addtional variable assignments for right and middle click as well. They could all be contained in the same script. Take care.