OPENBARMENU with [Associations] or [Extensions]

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
KozakMak
Senior Member
Senior Member
Posts: 489
Joined: 2021-05-24, 12:39 UTC
Location: UA

OPENBARMENU with [Associations] or [Extensions]

Post by *KozakMak »

Is the way to use OPENBARMENU with [Associations] or [Extensions] ?
OS: Win10 | TC: latest x64
User avatar
Gral
Power Member
Power Member
Posts: 1600
Joined: 2005-01-26, 15:12 UTC

Re: OPENBARMENU with [Associations] or [Extensions]

Post by *Gral »

What you really want to achieve?
If you want to display button bar from file under cursor use such a syntax in [Associations] section

Code: Select all

Filter1=*.bar
Filter1_Show=**"%1"
If you want to show and use button bar for e.g. text files use syntax

Code: Select all

Filter1=*.txt
Filter1_buttonbar1=**%COMMANDER_PATH\buttonbar1.bar
This works from TC 10.50
User avatar
petermad
Power Member
Power Member
Posts: 16032
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: OPENBARMENU with [Associations] or [Extensions]

Post by *petermad »

KozakMak wrote: 2023-05-04, 09:57 UTC Is the way to use OPENBARMENU with [Associations] or [Extensions] ?
OPENBARMENU is for use in em_commands and buttons. You can assign an em_command to a keyboard shortcut or use it as an Auto-run command in a View Mode
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
KozakMak
Senior Member
Senior Member
Posts: 489
Joined: 2021-05-24, 12:39 UTC
Location: UA

Re: OPENBARMENU with [Associations] or [Extensions]

Post by *KozakMak »

Gral wrote: 2023-05-04, 11:40 UTC What you really want to achieve?
Press Enter on .bar = show this bar as menu
Gral wrote: 2023-05-04, 11:40 UTC If you want to display button bar from file under cursor use such a syntax in [Associations] section
doesnt work
OS: Win10 | TC: latest x64
User avatar
Gral
Power Member
Power Member
Posts: 1600
Joined: 2005-01-26, 15:12 UTC

Re: OPENBARMENU with [Associations] or [Extensions]

Post by *Gral »

OK, start with this

Code: Select all

[Associations]
Filter1=*.bar
Filter1_open=**"%1"
KozakMak
Senior Member
Senior Member
Posts: 489
Joined: 2021-05-24, 12:39 UTC
Location: UA

Re: OPENBARMENU with [Associations] or [Extensions]

Post by *KozakMak »

it works! thx
OS: Win10 | TC: latest x64
Post Reply