Some questions regarding Custom Toolbar Button

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
binocular222
Posts: 1423
Joined: 04 Nov 2008 05:35
Location: Win11, Win10, 100% Scaling

Some questions regarding Custom Toolbar Button

Post by binocular222 »

Hi,
Can I change these behaviours?
- Right click pop-up a menu (with click; edit) instead of launching the assigned command (I assigned only simple 1-line command to Right click)
- Label accepts neither variable nor script
- Drive group (i.e: {drives_rem} ) cannot be edited. I want different action when I left/right click this drive group button.

P.S if the Drive group button cannot be edited, then can you help me to mimic that button (icon plus dynamic drive letter)?
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488

klownboy
Posts: 4462
Joined: 28 Feb 2012 19:27
Location: Windows 11, 25H2 Build 26200.8737 at 100% 2560x1440

Re: Some questions regarding Custom Toolbar Button

Post by klownboy »

Hey binocular222,
I think I can answer your 1st question. You can keep the Click and Edit... from showing up on the right click of a CTB by using this tweak in the XYplorer.ini file. From Beta change log:
+ Tweak to hide Click, Edit, Customize Toolbar" from the CTB's
right-click menu.
CTBNoRClickDefaultCommands=1
You still get those commands with CTRL+RightClick.
See http://www.xyplorer.com/xyfc/viewtopic. ... t=klownboy You can then use a right click on a CTB to open a program immediately or you can open a menu with out the Click and Edit business being revealed.
Ken

binocular222
Posts: 1423
Joined: 04 Nov 2008 05:35
Location: Win11, Win10, 100% Scaling

Re: Some questions regarding Custom Toolbar Button

Post by binocular222 »

Thanks klownboy, it works.
Anyone knows about the remaining 2 points?
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488

Post Reply