CEA_DoubleClickonWhiteScriptChanger

Discuss and share scripts and script files...
Post Reply
klownboy
Posts: 3024
Joined: 28 Feb 2012 19:27

CEA_DoubleClickonWhiteScriptChanger

Post by klownboy » 04 Oct 2020 17:18

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.
CEA_DoubleClickonWhiteScriptChanger_v1.1.JPG
CEA_DoubleClickonWhiteScriptChanger_v1.1.JPG (19.37 KiB) Viewed 121 times
CEA_DoubleClickonWhiteScriptChanger_v1.1.xys
(3.58 KiB) Downloaded 9 times
CEA_DoubleClickonWhiteScriptChanger.xys
(2.42 KiB) Downloaded 13 times

klownboy
Posts: 3024
Joined: 28 Feb 2012 19:27

Re: CEA_DoubleClickonWhiteScriptChanger

Post by klownboy » 08 Oct 2020 14:53

Hi again, a quick update to this script. Version 1.1 is the latest.

- Added a marker which indicates which of the scripts is currently being used for Double Click on White Space in the List and Tree. See screen capture on first post.

- Cleaned up and revamped the menu slightly

- corrected an error in a SC setkey statement on the uploaded version - if you had uncommented out this first section to add the variable - this line was messed up: setkey "6", "CEA_ListDoubleClickRightClickOnWhite", "Settings"; If you did by chance happen to run that first section you would have had a incorrect line added to the ini file so you should delete that line with "CEA_ListDoubleClickRightClickOnWhite"...obviously wrong. The script would continue to exit without saving since the correct setting was not being changed. Fixed. :roll:

Thanks.

Post Reply