Page 1 of 2
CTB: right click not working
Posted: 10 Nov 2021 18:44
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 (48.51 KiB) Viewed 2928 times
ctb left click

- ctb_rmb_leftclick.png (8.13 KiB) Viewed 2928 times
Works as expected
ctb right click

- ctb_rmb_rightclick.png (14.68 KiB) Viewed 2928 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");
Re: CTB: right click not working
Posted: 10 Nov 2021 19:08
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.
Re: CTB: right click not working
Posted: 10 Nov 2021 19:16
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
This could become some fun, lol.
Re: CTB: right click not working
Posted: 10 Nov 2021 19:16
by admin
Set this tweak? CTBNoRClickDefaultCommands=1
Re: CTB: right click not working
Posted: 10 Nov 2021 19:19
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?
Re: CTB: right click not working
Posted: 10 Nov 2021 19:21
by autocart
No need. It just changed very recently. (Still, I already forgot.)
Re: CTB: right click not working
Posted: 10 Nov 2021 19:28
by admin
autocart wrote: ↑10 Nov 2021 19:21
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.
Re: CTB: right click not working
Posted: 10 Nov 2021 19:30
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.
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.

Re: CTB: right click not working
Posted: 10 Nov 2021 19:36
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.

Re: CTB: right click not working
Posted: 10 Nov 2021 19:44
by admin
OK, let's wait for the second victim...
Re: CTB: right click not working
Posted: 11 Nov 2021 12:14
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
Re: CTB: right click not working
Posted: 11 Nov 2021 12:20
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.
Re: CTB: right click not working
Posted: 11 Nov 2021 14:18
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.
Re: CTB: right click not working
Posted: 11 Nov 2021 14:28
by admin
That a right click opens a menu should be the expected result.
Re: CTB: right click not working
Posted: 11 Nov 2021 14:44
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.