Capability of toggling a CEA acion to "none" from currently assigned action

Features wanted...
klownboy
Posts: 4142
Joined: 28 Feb 2012 19:27

Capability of toggling a CEA acion to "none" from currently assigned action

Post by klownboy »

Hi Don, is there any chance we could get the capability of changing the "action" block on CEAs from the current action (e.g., Run script) to "none" on the fly. I'm most interested in getting that option for "Tab switches" and "Pane Switches", but it could, at a later time possibly, be applied to any of the CEA actions. These CEAs are obviously great, but there are times when it would be beneficial to be able to toggle the action block to "none" via a script temporarily and then back to their original action setting. Thanks.
Windows 11, 23H2 Build 22631.3447 at 100% 2560x1440

admin
Site Admin
Posts: 60619
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Capability of toggling a CEA acion to "none" from currently assigned action

Post by admin »

How about blocking all CEAs for starters?

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

Re: Capability of toggling a CEA acion to "none" from currently assigned action

Post by klownboy »

Yes, for starters that would be fine as long as it's immediate. Until tested I'm not sure what issues might surface when blocking all CEAs, but it would probably be only a momentary block anyway. Thanks.
Windows 11, 23H2 Build 22631.3447 at 100% 2560x1440

admin
Site Admin
Posts: 60619
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Capability of toggling a CEA acion to "none" from currently assigned action

Post by admin »

I wonder if there should be a global GUI setting "Enable Custom Event Actions" similar to "Configuration | Colors and Styles | Color Filters | Enable color filters"?

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

Re: Capability of toggling a CEA acion to "none" from currently assigned action

Post by klownboy »

That sounds like a good idea. Though I'm hoping for a quick scripting way to toggle it via SC setting or tweak or something similar. So, disabling CEAs would have the same effect as taking an individual CEA to none, correct?
Windows 11, 23H2 Build 22631.3447 at 100% 2560x1440

admin
Site Admin
Posts: 60619
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Capability of toggling a CEA acion to "none" from currently assigned action

Post by admin »

It could be a global GUI setting that's also accessible by SC setting.

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

Re: Capability of toggling a CEA acion to "none" from currently assigned action

Post by klownboy »

Sounds good. :tup:
Windows 11, 23H2 Build 22631.3447 at 100% 2560x1440

admin
Site Admin
Posts: 60619
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Capability of toggling a CEA acion to "none" from currently assigned action

Post by admin »

On second thoughts it's more complicated. Should disabling CEA really go to "none" or better to factory default?

Another solution would be to automatically ignore "Run script" actions when in a script context.

Needs more thinking.

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

Re: Capability of toggling a CEA acion to "none" from currently assigned action

Post by klownboy »

admin wrote: 13 Feb 2024 09:20 Needs more thinking.
In my opinion, the only users that would potentially use this are scripters. So not invoking the "Script" when the Action" block is "Run script" action when in in any script context would work.

The first option you list, going to factory default would also work since factory default wouldn't be running any scripts. This would be more in line with how you handle other key "Features" in Tools > Configuration > Features. "Factory default" I assume would be what the user would encounter if in a fresh instance.
Windows 11, 23H2 Build 22631.3447 at 100% 2560x1440

admin
Site Admin
Posts: 60619
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Capability of toggling a CEA acion to "none" from currently assigned action

Post by admin »

Hmm, maybe your original idea (allowing the choice of action to be set by scripting) works best. Most powerful and least overpowering.

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

Re: Capability of toggling a CEA acion to "none" from currently assigned action

Post by klownboy »

That is the best way, but I was worried that it may require more work on your part. Would you have all possible actions for each CEA which are different obviously for each CEA or simply "none" and the currently set action? I was forgetting that you already have an assigned a number for each CEA action in XYplorer.ini file.
Windows 11, 23H2 Build 22631.3447 at 100% 2560x1440

admin
Site Admin
Posts: 60619
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Capability of toggling a CEA acion to "none" from currently assigned action

Post by admin »

It was fairly easy. Upload soon.

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

Re: Capability of toggling a CEA acion to "none" from currently assigned action

Post by klownboy »

Beta 25.50.0103 works great. I really like the fact that you made SC CEA such that you can actually change the script or script file on demand as well as toggling the CEA action from "none" to "Run script". Thanks. :tup: :appl:
Windows 11, 23H2 Build 22631.3447 at 100% 2560x1440

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

Re: Capability of toggling a CEA acion to "none" from currently assigned action

Post by klownboy »

In hindsight Don now that you've made the CEAs so accessible to scripting, it would have been cleaner and more user friendly from the scripting perspective if the assigned "action block" number associated with "Run script" were consistent across the board for all CEAs like they are they are for "None". The "Action block" for "None" is consistently "0". It would have been better if the "Action block" for "Run Script" was also a consistent number like "1" across the board especially since it's the only other action that can apply to all CEAs. All the other possible actions which are not necessarily consistent from CEA to CEA would start after "1". Obviously, we can determine the "Action block" number, but it would be one less step to do. Well, it's probably too late now since CEAs have been in place so long. :)
Windows 11, 23H2 Build 22631.3447 at 100% 2560x1440

admin
Site Admin
Posts: 60619
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Capability of toggling a CEA acion to "none" from currently assigned action

Post by admin »

I agree on all points: It would have been better, and now it's too late. :)

Post Reply