Page 1 of 3

CEA - Drives

Posted: 27 Dec 2020 23:21
by sl23
Would it be possible to have a new Custom Event Action group for Drives please?

Specifically, what I would like, is to be able to Left Click a Drive in the Toolbars 'All Drives (Group)' item, and open a drive by default in a new tab.

Thank you

Re: CEA - Drives

Posted: 29 Dec 2020 09:59
by admin
There is already a cooler way: You hold SHIFT while clicking a drive button to open it in a new tab.

Re: CEA - Drives

Posted: 29 Dec 2020 12:41
by sl23
Thanks, but I prefer NOT to use a keyboard. Is there a current way to do this without keyboard interaction?

Re: CEA - Drives

Posted: 29 Dec 2020 12:42
by admin
1. Open a new tab, 2. Click the button

Re: CEA - Drives

Posted: 29 Dec 2020 15:20
by sl23
haha! :appl: That's not technically what I asked for though!

I meant a single click without the need to open new tab, so it's done automatically.

In CubicExplorer, I currently browse a folder in one tab and via a setting in the options, when I need to open a new tab to browse a different drive I can just click the drive to open a new tab with that drive as it's root. Saving time by not having to open a new tab first.

Is this possible? Maybe via scripting? If I need to learn about that I'm willing to give it a go. But I really find this is so much easier than Open tab->Select drive or using keyboard shortcuts. This is my preference. If there's a way to achieve this, I will do whatever it takes.

What is the scripting language used by XY?

Re: CEA - Drives

Posted: 29 Dec 2020 16:06
by highend
01. If you have a sufficient mouse driver software installed (that can remap depending on active application)...
Let it remap one of the unused (4th, 5th?) buttons to be the shift key

02. Use AutoHotkey instead if 01. can't be used

XY scripting doesn't help in this case

Re: CEA - Drives

Posted: 29 Dec 2020 16:27
by sl23
Thanks highend for the reply :)

but...

1. My mouse doesn't have configurable buttons.
2. A lot to learn for one feature seeing as I know nothing about AutoHotkey!
3. Bollocks! :cry:

Re: CEA - Drives

Posted: 29 Dec 2020 17:49
by eil
why not make scripted buttons for needed drives or one button with dropdown list = with scripting you can make it open new tab before opening drive.

Re: CEA - Drives

Posted: 29 Dec 2020 18:14
by highend
Even AHK isn't necessary because X-Mouse Button Control could do the necessary things as well...
but with only a two button mouse, nope...

The only other option (as eil mentioned) is scripting but not in conjunction with the "All drives" button.

But with a custom event action on folder change you could create a "show only available" user-defined buttons toolbar and those buttons can do whatever necessary.

Re: CEA - Drives

Posted: 30 Dec 2020 00:09
by sl23
Thanks for the tips. I'll look into it :D

Re: CEA - Drives

Posted: 30 Dec 2020 00:15
by sl23
sl23 wrote: 29 Dec 2020 15:20What is the scripting language used by XY?
How exactly do you know where to start if you don't know what language is used?
Or is that irrelevant?

What exactly is the criteria for scripting?
Any help would be appreciated.

Thanks

Re: CEA - Drives

Posted: 30 Dec 2020 00:19
by highend
It's based on php but it does have its own feature set. The help file contains everything necessary and we have hundreds of scripts to learn from in the script section of the forum

Re: CEA - Drives

Posted: 30 Dec 2020 01:04
by sl23
Thanks, I forgot about that! I'm not used to help files actually being of use! :oops:

Re: CEA - Drives

Posted: 30 Dec 2020 13:26
by sl23
highend wrote: 30 Dec 2020 00:19 It's based on php but it does have its own feature set. The help file contains everything necessary and we have hundreds of scripts to learn from in the script section of the forum
If it's based on php, why does php look the same as html code but every script I have looked at is totally different? In fact it seems more like C++ to me? Not that I know anything about either, but from simple observational pov, it appears that way.

Re: CEA - Drives

Posted: 30 Dec 2020 13:50
by highend
What?

From your first link:

Code: Select all

echo "Hi, I'm a PHP script!";
and now XY's echo command:

Code: Select all

echo "hi!";
And your C++ example is not a graphical "echo" but outputs text in a command prompt