CTB: right click not working

Things you’d like to miss in the future...
Filehero
Posts: 2645
Joined: 27 Feb 2012 18:50
Location: Windows 10 Pro x64

CTB: right click not working

Post by Filehero »

Hi Don,

i found a weird problem over here. It has started some beta versions in the (don't know exactly) but I originally thought it being caused by some "broken" settings.

Today I took a deeper look and can reproduce my finding with a fresh install.

The problem: the (hidden) script assigned to a CTB's "On right-click:" isn't triggered anymore.


overview/script assignments
ctb_rmb_broken.png
ctb_rmb_broken.png (48.51 KiB) Viewed 1712 times


ctb left click
ctb_rmb_leftclick.png
ctb_rmb_leftclick.png (8.13 KiB) Viewed 1712 times
Works as expected



ctb right click
ctb_rmb_rightclick.png
ctb_rmb_rightclick.png (14.68 KiB) Viewed 1712 times
Here the hidden script passed (red box highlight above) on isn't called (a popup with an empty menu section is rendered instead).


I still think the problem is on my side (in my brain?) because no one else has reported it. But this stuff has been working for many years over here, so :?:

Thanks


PS: the script code

Code: Select all

"_apps"
  msg("_apps");

"_win_tools"
  msg("_win_tools");

"_xy_fav_tools"
  msg("_xy_fav_tools");

"_xy_var_tools"
  msg("_xy_var_tools");

autocart
Posts: 1248
Joined: 26 Sep 2013 15:22

Re: CTB: right click not working

Post by autocart »

I don't know. It works here.
Just to be on the safe side: Could you right-click on that "Clear" button in the CTB Edit dialog, then "Copy as Snippet" and then paste the snippet here, please.

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

Re: CTB: right click not working

Post by Filehero »

The snippet

Code: Select all

Snip: CTB 1
  XYplorer 22.40.0218, 10.11.2021 19:14:27
Action
  NewUserButton
Name
  ToolbarExpander
Icon
  
ScriptL
  load("<xyscripts>\misc\ctb_rmb.xys", "_xy_var_tools");
ScriptR
  load("<xyscripts>\misc\ctb_rmb.xys", "_xy_fav_tools");
FireClick
  0


The script
ctb_rmb.xys
(152 Bytes) Downloaded 54 times

This could become some fun, lol.
Last edited by Filehero on 10 Nov 2021 19:17, edited 1 time in total.

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

Re: CTB: right click not working

Post by admin »

Set this tweak? CTBNoRClickDefaultCommands=1

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

Re: CTB: right click not working

Post by Filehero »

admin wrote: 10 Nov 2021 19:16 Set this tweak? CTBNoRClickDefaultCommands=1
Darn! That's it! Double Darn!

Thanks Don and autocart.

@Don: Should this tweak default to 1 to have the right-click option work?
Last edited by Filehero on 10 Nov 2021 19:23, edited 1 time in total.

autocart
Posts: 1248
Joined: 26 Sep 2013 15:22

Re: CTB: right click not working

Post by autocart »

Filehero wrote: 10 Nov 2021 19:19 Darn!
No need. It just changed very recently. (Still, I already forgot.)

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

Re: CTB: right click not working

Post by admin »

autocart wrote: 10 Nov 2021 19:21
Filehero wrote: 10 Nov 2021 19:19 Darn!
No need. It just changed very recently. (Still, I already forgot.)
Yes, there was a change on 20211022, and it was experimental. Maybe it was not a good idea? Without that change it would have continued to work for Filehero without setting the tweak.

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

Re: CTB: right click not working

Post by Filehero »

autocart wrote: 10 Nov 2021 19:21 No need. It just changed very recently. (Still, I already forgot.)
At least I did remember "very recently" right. :lol:

I still try to read every single beta release note. But with the recent changes being more in the bigger side it's sometimes really hard to keep up with all the changes Don is putting out.

It's working. :appl:

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

Re: CTB: right click not working

Post by Filehero »

admin wrote: 10 Nov 2021 19:28 Yes, there was a change on 20211022, and it was experimental. Maybe it was not a good idea? Without that change it would have continued to work for Filehero without setting the tweak.
I wonder why I'm to be the seemingly only one to face this issue unless i'm the only one using CTB's right-click option (surely not) and having this tweak set to 0.
I would keep this change in until more people coming up with this issue.

I Just have to remember the tweak. :biggrin:

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

Re: CTB: right click not working

Post by admin »

OK, let's wait for the second victim...

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

Re: CTB: right click not working

Post by klownboy »

admin wrote: 10 Nov 2021 19:44 OK, let's wait for the second victim...
I believe that was the 2nd victim. See this thread, "CTB right click action results in CTRL right click behavior"
https://www.xyplorer.com/xyfc/viewtopi ... =3&t=23717
Windows 11, 23H2 Build 22631.3447 at 100% 2560x1440

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

Re: CTB: right click not working

Post by admin »

Yeah, probably. I personally don't use CTBs that much and frankly I don't know what's desirable here. If the tweak now does what it says, and if the factory default feels natural and useful, then I think it can stay as it is.

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

Re: CTB: right click not working

Post by klownboy »

Most new users probably don't care until they start experimenting with CTBs. Then they start wondering why the right click action doesn't behave similar to the left click.
Windows 11, 23H2 Build 22631.3447 at 100% 2560x1440

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

Re: CTB: right click not working

Post by admin »

That a right click opens a menu should be the expected result.

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

Re: CTB: right click not working

Post by klownboy »

admin wrote: 11 Nov 2021 14:28 That a right click opens a menu should be the expected result.
You're probably right at least initially, but once they get into scripting, they're more likely to not want that default menu. Not a big deal though either way.
Windows 11, 23H2 Build 22631.3447 at 100% 2560x1440

Post Reply