User Button Right Click

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
neil9090
Posts: 64
Joined: 28 Jun 2014 00:09

User Button Right Click

Post by neil9090 »

If I add ::load "C:\script.xys","label name" to the on the right click of a user button.
When the button is right button clicked the menu shows the text as given, but if the text is in the left click option the menu/script is executed.

If this a bug or how can I get the ::load bit hidden for a caption or something?

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

Re: User Button Right Click

Post by klownboy »

If I followed you correctly, make sure you have this tweak set to "1" XYplorer.ini (i.e., search for the text in the ini file and set it to "1" if it's currently "0"). Save the file and exit XY without saving and then restart it.

Code: Select all

CTBNoRClickDefaultCommands=1
Windows 11, 23H2 Build 22631.3447 at 100% 2560x1440

neil9090
Posts: 64
Joined: 28 Jun 2014 00:09

Re: User Button Right Click

Post by neil9090 »

wow, thanks for the quick reply.

that works, although if you want to edit the user button you have to adjust the tweak...

so is this a sort of bug?

Stef123

Re: User Button Right Click

Post by Stef123 »

Ctrl right- click instead of simply right-clicking to get the default "Edit..."

neil9090
Posts: 64
Joined: 28 Jun 2014 00:09

Re: User Button Right Click

Post by neil9090 »

another cool tip
thanks..
:appl:

sinilill
Posts: 111
Joined: 02 Dec 2013 18:37

Re: User Button Right Click

Post by sinilill »

What can I say, another hidden treasure :D

Enternal
Posts: 1174
Joined: 10 Jan 2012 18:26

Re: User Button Right Click

Post by Enternal »

klownboy wrote:If I followed you correctly, make sure you have this tweak set to "1" XYplorer.ini (i.e., search for the text in the ini file and set it to "1" if it's currently "0"). Save the file and exit XY without saving and then restart it.

Code: Select all

CTBNoRClickDefaultCommands=1
I feel like this tweak should probably be promoted to GUI. I spend hours the other day because I could not figure out why one of my installation was doing what it does with this tweak on and the other wasn't. It was only when I started comparing the two ini did I realize this tweak was on and I completely forgot about it. It seems like a very useful tweak and should be probably be on by default?

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

Re: User Button Right Click

Post by klownboy »

+1 I have to agree with this one. When we have to reply to that many questions concerning a topic (i.e., tweak), it probably should be elevated. Who wouldn't want the tweak especially after using XY a while as long as it's clear they have to use Control-right click to access the edit menu.
Windows 11, 23H2 Build 22631.3447 at 100% 2560x1440

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: User Button Right Click

Post by TheQwerty »

Enternal wrote:It seems like a very useful tweak and should be probably be on by default?
I think if it were on by default we'd have more people asking about how to Edit the button than have asked how to bypass the menu, so I disagree.

I agree it should be promoted to the GUI, but I'd prefer it become a property of the User Button, just like "Fire click on mousedown".
  1. This makes it easily discoverable.
  2. Puts it in the more relevant place rather than lost in the Configuration dialog.
  3. It can have a tooltip to also make the Ctrl+Right-Click discoverable.
  4. Gives us something between All or Nothing - enable it for only some User Buttons.
The last point is precisely why I don't use the current tweak.

Filehero
Posts: 2645
Joined: 27 Feb 2012 18:50
Location: Windows 10 Pro x64

Re: User Button Right Click

Post by Filehero »

+1 for elevation
+10 for TheQuerty

nerdweed
Posts: 648
Joined: 25 Feb 2012 07:47

Re: User Button Right Click

Post by nerdweed »

I do use the tweak for a simple reason that I use the right click pop up menu more often than editing them. Which is only a Ctrl away

eil
Posts: 1622
Joined: 13 Jan 2011 19:44

Re: User Button Right Click

Post by eil »

add me to list of "+1" :)
Win 7 SP1 x64 100% 1366x768

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

Re: User Button Right Click

Post by klownboy »

TheQwerty wrote:I agree it should be promoted to the GUI, but I'd prefer it become a property of the User Button...
Good idea, though it's probably more work on Don's part. If it's elevated it will have to be clearly stated that access to the CTB's main edit menu will be by control-right click. In many cases I have menus set as right click of a CTB and the normal left click set as the default or most frequently used action on the right click menu.
Windows 11, 23H2 Build 22631.3447 at 100% 2560x1440

Enternal
Posts: 1174
Joined: 10 Jan 2012 18:26

Re: User Button Right Click

Post by Enternal »

Filehero wrote:+1 for elevation
+10 for TheQuerty
+100

Yeah completely agree.

Post Reply