Toolbar Buttons with Dropdowns

Features wanted...
Post Reply
zmachine01
Posts: 49
Joined: 16 Mar 2018 17:20

Toolbar Buttons with Dropdowns

Post by zmachine01 »

I see that several buttons have dropdown menus. Is it possible that a humble peasant, like myself, could create such a button from which to launch applications from? Here's a pic showing a vision of what I'm imagining in my futuresphere mindscape. Also showing off my Snatchbox accomplishment:
Run.png
Run.png (198.4 KiB) Viewed 619 times

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

Re: Toolbar Buttons with Dropdowns

Post by eil »

You'll need just a little scripting. Read about scripting command popupmenu / popupnested = these allow to create any drop menus you may desire.
Yet for additional reference, you can right click on Hamburger button in Breadcrumbs menu(3 lines buttons) and select Customize - that's how its menu looks script-wise.
Win 7 SP1 x64 100% 1366x768|1900x1080

Marc
Posts: 37
Joined: 04 Jun 2023 17:41

Re: Toolbar Buttons with Dropdowns

Post by Marc »

Right click on toolbar > Customize Toolbar

On left, scroll down to: User Button #...

Click Add

Move it to the place you want in right list

OK

Right Click on the new button

Change name and ico to what you want

On Left-click field, click Edit...

Put your program names and command like this

Code: Select all

"Notepad++";
  run '"C:\Program Files\Notepad++\notepad++.exe"';

"FireFox"
  run '"C:\Program Files\Mozilla Firefox\firefox.exe"';

"Sumatra PDF"
  run '"C:\Program Files\SumatraPDF\SumatraPDF.exe"';
(quote programs with '" ... "' (apostrophe and quotation mark ) and end with ;

OK
OK

That all

See Scripting on help for more details (in the middle of page: XYplorer Script Files)
;)
Last edited by Marc on 20 Mar 2025 22:13, edited 1 time in total.
(English in not my native language (french), I use an online translator)

jupe
Posts: 3242
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: Toolbar Buttons with Dropdowns

Post by jupe »

You don't need scripting.

You can just put a list of full paths to exe's, one per line, if you want custom captions, append them after the path with a semicolon separator, like this:

c:\path\executable.exe;IronCAD

Marc
Posts: 37
Joined: 04 Jun 2023 17:41

Re: Toolbar Buttons with Dropdowns

Post by Marc »

You can just put a list of full paths to exe's, one per line, if you want custom captions, append them after the path with a semicolon separator [...]
Yes! Even simpler, and it also displays program icons.
Thanks a lot!
:appl:
(English in not my native language (french), I use an online translator)

zmachine01
Posts: 49
Joined: 16 Mar 2018 17:20

Re: Toolbar Buttons with Dropdowns

Post by zmachine01 »

Perfect thank you friends! This may radically supercharge my entire setup :idea: :idea: :idea:

Post Reply