Right click menu on a toolbar drive changed after 13.60 ?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
DeepAnger
Posts: 7
Joined: 24 Dec 2014 11:41

Right click menu on a toolbar drive changed after 13.60 ?

Post by DeepAnger »

I have added "All Drives (Group)" on the toolbar.
The right click menu brings the drive context menu with version 13.60. It's useful to quickly "eject" a USB device or dismount a virtual drive.

The right click menu brings the "Click, Edit, Customize Toolbar" menu with version 14.80 (and probably any version after 13.60).

I'd rather have the drive menu. Is it possible to revert to 13.60 behavior and keep the drive context menu ?

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: Right click menu on a toolbar drive changed after 13.60

Post by bdeshi »

paste the following script code into the addressbar and press ENTER.

Code: Select all

::savesettings; setkey 1, "CTBNoRClickDefaultCommands", "Settings"; exit nr;
(Note that the script will save settings and restart XY.
To restart without saving, enter this code instead:

Code: Select all

::setkey 1, "CTBNoRClickDefaultCommands", "Settings"; exit nr;
)[/size]
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

DeepAnger
Posts: 7
Joined: 24 Dec 2014 11:41

Re: Right click menu on a toolbar drive changed after 13.60

Post by DeepAnger »

Thank you for your help.
But it does not work : when launched from the address bar, there is an error message popup from XYplorer "XYplorer has stopped working", A problem..., Close the program.
When started through the menu Scripting, Run script, it does not complain and restarts but I still have the new menu "Click, Edit, Customize Toolbar" when I right click on my drives in the toolbar.

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: Right click menu on a toolbar drive changed after 13.60

Post by bdeshi »

Okay. Open the xyplorer.ini file, go to the section [Settings], and change the value of the key "CTBNoRClickDefaultCommands" to 1.
Then if XY was running, restart it WITHOUT SAVING. (so that the change stays.)
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

DeepAnger
Posts: 7
Joined: 24 Dec 2014 11:41

Re: Right click menu on a toolbar drive changed after 13.60

Post by DeepAnger »

Héhé, I did, probably while your were writing your suggestion.
The command worked and the parameter was set as intended

CTBNoRClickDefaultCommands=1

But the right click menu on a drive in the toolbar still brings the "Click, Edit, Customize Toolbar" menu.

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: Right click menu on a toolbar drive changed after 13.60

Post by bdeshi »

Do you have a right click script at all for the toolbar button?
To see the attached files, you need to log into the forum.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

DeepAnger
Posts: 7
Joined: 24 Dec 2014 11:41

Re: Right click menu on a toolbar drive changed after 13.60

Post by DeepAnger »

I never said it was a user button (as shown in your screen copy). I use a lot of user buttons for my server's shared drives (eg. \\SERVER\SHARE). I don't use script (yet).
I'd like to have the drive context menu as it work in 13.60 on a predefined button :

I wrote "I have added "All Drives (Group)" on the toolbar."

In version 13.60, no script was necessary to have the OS default context menu on these predefined drives.
And it seems I cannot add a script to that predefined button.

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: Right click menu on a toolbar drive changed after 13.60

Post by bdeshi »

I thought maybe you'd created a custom "All Drives" button(s), because of this line:
DeepAnger wrote:The right click menu brings the "Click, Edit, Customize Toolbar" menu with version 14.80 (and probably any version after 13.60).
:veryconfused:
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

DeepAnger
Posts: 7
Joined: 24 Dec 2014 11:41

Re: Right click menu on a toolbar drive changed after 13.60

Post by DeepAnger »

Anyway, thank you very much for your effort.

Post Reply