Page 1 of 1

Default Button in Menu-Buttonbar

Posted: 2023-10-11, 20:58 UTC
by Clas Hortien
Hi,

it would be very helpful if you could add a functionality to the buttonbar that is shown as menu. When you click with Alt- or Ctrl- or Shift- on the main button (that normally opens another bar as menu) a "default" entry from the menu is chosen. So as an example I have a button Games in my Buttonbar that opens a menubar like this

Age of Empires
Skyrim
Chess
Tetris

When I click on the Games button this menu opens normal, but when I click on the Games button with e.g. Ctrl-Click Skyrim starts, because I have (somehow) defined this as the default action for this menubar.

I hope I could make it clear.
Many thanks for this great tool, I use it everyday since 20+ years.

Clas

Re: Default Button in Menu-Buttonbar

Posted: 2023-10-11, 22:03 UTC
by Fla$her
That would be nice. With the help of TCFS2, this can be done now. For example:
TCFS2.exe /ef "if(eval(pressedCtrl),em(em_Skyrim),tem(`em_OpenBarMenu "%COMMANDER_PATH%\Bars\this.bar"`))"

, where em_Skyrim starts the program, and em_OpenBarMenu in the first two fields consists of OPENBARMENU and %A.