bar icons - context menu or submenu instead opening shortcut?

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
andrzejk
New Member
New Member
Posts: 1
Joined: 2024-01-24, 22:03 UTC

bar icons - context menu or submenu instead opening shortcut?

Post by *andrzejk »

I'd like to see ability to define own context menu for bar icons.

Let's say, I got "Syncthing" shortcut on my bar (the software for syncing data between devices). I want to add two positions to submenu (which by default contains shortcut name, "as Administrator" option, Edit, delete, go to dir etc): go to defined directory, where I store my data, setup software (run syncthing.exe with parameter), maybe something more.
It also could be really useful if I could use parameters like %programpath% or system variables to define submenu shortcuts.
hi5
Power Member
Power Member
Posts: 551
Joined: 2012-11-03, 11:35 UTC
Contact:

Re: bar icons - context menu or submenu instead opening shortcut?

Post by *hi5 »

Perhaps the openbar command already does what you want, create a button bar for your Syncthing, then in your "mainbar" create a button with the command:

openbar path-to\Syncthing.bar

now a drop down "menu" (the bar) will appear.
F4MiniMenu (Forum) - Open selected file(s) from TC in defined editor(s) - A (minimalistic) clone of F4Menu
Source at GitHub (AutoHotkey). TCSyncComments (copy file comments)
User avatar
petermad
Power Member
Power Member
Posts: 14809
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: bar icons - context menu or submenu instead opening shortcut?

Post by *petermad »

In addition to hi5's recommandation you have to check the option: "Show as menu" in the "Change button bar" dialog.

You don't need the openbar command, just writing path-to\Syncthing.bar in the Command field for the button should do it.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply