TCFS2 and Total Commander shortcut assignment

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
igarny
Junior Member
Junior Member
Posts: 58
Joined: 2023-01-26, 19:01 UTC

TCFS2 and Total Commander shortcut assignment

Post by *igarny »

Hello guys,

I hope I am on the right forum with this question.
My goal is to activate/press the 3rd button from the end on the current button bar using a shortcut assigned in TC ini.

therefor I tested this:

Code: Select all

\TCFS2\TCFS2.exe /ef tcm(4004) send(`{END}{LEFT 2}{ENTER}`)
and it works great!
but when I created an external command like this:

Code: Select all

[em_ext_buttonbar_help3]
cmd=%COMMANDER_PATH%\Plugins\exe\TCFS2\TCFS2.exe /ef tcm(4004) send(`{END}{LEFT 2}{ENTER}`)
menu=TCFS2 help button 3
and assigned it with a key shortcut...

it behaves weirdly and engages with functionality of the current open panel

Probably tcm(4004) is not the right command ...
Or I am missing a bit here...
Please help!
sa16
Senior Member
Senior Member
Posts: 217
Joined: 2021-09-10, 07:15 UTC

Re: TCFS2 and Total Commander shortcut assignment

Post by *sa16 »

2igarny
assigned it with a key shortcut...
Probably a modifier (Ctrl, Shift, etc.) is used in combination of presses? Try adding delay(500) before tcm (4004).
Fla$her
Power Member
Power Member
Posts: 2318
Joined: 2020-01-18, 04:03 UTC

Re: TCFS2 and Total Commander shortcut assignment

Post by *Fla$her »

2igarny
I guess we went back to my proposal where I showed you how to use Ctrl for faster navigation.
But it's quite another thing when you use Ctrl only as a modifier for a custom hotkey. Of course, the behavior will be different. This doesn't apply to other modifiers. You can safely to use Alt or Shift instead of Ctrl.
Overquoting is evil! 👎
igarny
Junior Member
Junior Member
Posts: 58
Joined: 2023-01-26, 19:01 UTC

Re: TCFS2 and Total Commander shortcut assignment

Post by *igarny »

Thanks you guys for the hints
Actually I am trying to use ALT
And mostly the result is to open the file properties under cursor == ALT+ENTER
this is most obvious as I am trying a solution, which opens the very last button on the bar...

well apparently the ALT is also interpreted as a modifier

And yes @Fla$her... you nailed it... :o
indeed this was the example I followed.
Fla$her
Power Member
Power Member
Posts: 2318
Joined: 2020-01-18, 04:03 UTC

Re: TCFS2 and Total Commander shortcut assignment

Post by *Fla$her »

2igarny
Yes, there is a problem with Alt, but only logically the button properties dialog should be called.
Then use Shift. There definitely shouldn't be any problems with it.

Of course, it's possible to wait until the modifier button is released:
TCFS2.exe /ef tcm(4004) loop(eval(pressedAlt)) send(`{LEFT 3}{ENTER}`)

, but I don't think it will be as convenient. To do this, you will need to install TCFS2Tools.
Overquoting is evil! 👎
sa16
Senior Member
Senior Member
Posts: 217
Joined: 2021-09-10, 07:15 UTC

Re: TCFS2 and Total Commander shortcut assignment

Post by *sa16 »

2igarny
Instead of delay(500), you can use loop((pressedShift||pressedCtrl||pressedAlt)*delay(5)).
But a TCFS2Tools plugin is required.
Post Reply