[TC 11.00b3] Placeholders like %P%N in internal associations and user-defined hotkeys

Bug reports will be moved here when the described bug has been fixed

Moderators: white, Hacker, petermad, Stefan2

Fla$her
Power Member
Power Member
Posts: 2299
Joined: 2020-01-18, 04:03 UTC

[TC 11.00b3] Placeholders like %P%N in internal associations and user-defined hotkeys

Post by *Fla$her »

HISTORY.TXT wrote:14.05.23 Added: Internal commands which do not start with cm_ or em_ now support placeholders like %P%N in internal associations and user-defined hotkeys, e.g. OPENBARMENU (32/64)
TC 11b3 x32
Configuration > Misc.
Command: OPENBARMENU
Parameters: %P%N

Cursor on the bar file. When calling via hotkey, nothing happens.

It's not clear about internal associations at all. Where did %P%N support come from there, if there is only %1/%2 and there is no "Parameters:" field?
Overquoting is evil! 👎
sa16
Senior Member
Senior Member
Posts: 217
Joined: 2021-09-10, 07:15 UTC

Re: [TC 11.00b3] Placeholders like %P%N in internal associations and user-defined hotkeys

Post by *sa16 »

Fla$her wrote: When calling via hotkey, nothing happens.
It works fine for me (Windows 10). Also %P%O.bar.
Fla$her
Power Member
Power Member
Posts: 2299
Joined: 2020-01-18, 04:03 UTC

Re: [TC 11.00b3] Placeholders like %P%N in internal associations and user-defined hotkeys

Post by *Fla$her »

XP/7 ?
Overquoting is evil! 👎
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48079
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.00b3] Placeholders like %P%N in internal associations and user-defined hotkeys

Post by *ghisler(Author) »

2Fla$her
Not confirmed. Just tried it on Windows XP too. Of course it only works when the cursor is standing on a .bar file...
Author of Total Commander
https://www.ghisler.com
Fla$her
Power Member
Power Member
Posts: 2299
Joined: 2020-01-18, 04:03 UTC

Re: [TC 11.00b3] Placeholders like %P%N in internal associations and user-defined hotkeys

Post by *Fla$her »

2ghisler(Author)
What about the Win modifier?

Code: Select all

[ShortcutsWin]
C+1=OPENBARMENU
C+1_params=%P%N
A+J=SAVETABS
A+J_params="%|COMMANDER_PATH|\Tabs\Current.tab"
And here the problematic cases are described without Win key.
Overquoting is evil! 👎
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48079
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.00b3] Placeholders like %P%N in internal associations and user-defined hotkeys

Post by *ghisler(Author) »

Confirmed that no parameters work with Win hotkey when the command doesn't start with CM_ or EM_.
Author of Total Commander
https://www.ghisler.com
Fla$her
Power Member
Power Member
Posts: 2299
Joined: 2020-01-18, 04:03 UTC

Re: [TC 11.00b3] Placeholders like %P%N in internal associations and user-defined hotkeys

Post by *Fla$her »

TC 11.00b4:

С+1= worked.

A+J=:

Code: Select all

---------------------------
Function not implemented!

12345678
---------------------------
Overquoting is evil! 👎
User avatar
petermad
Power Member
Power Member
Posts: 14796
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 11.00b3] Placeholders like %P%N in internal associations and user-defined hotkeys

Post by *petermad »

Fla$her wrote: 2023-05-24, 19:03 UTC TC 11.00b4:

С+1= worked.

A+J=:

Code: Select all

---------------------------
Function not implemented!

12345678
---------------------------

Code: Select all

[ShortcutsWin]
A+J=SAVETABS
A+J_params="%|COMMANDER_PATH|\Tabs\Current.tab"
It works fine here IF the folder Tabs\ exists - if it doesn't exist, nothing happens - no error message
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
Fla$her
Power Member
Power Member
Posts: 2299
Joined: 2020-01-18, 04:03 UTC

Re: [TC 11.00b3] Placeholders like %P%N in internal associations and user-defined hotkeys

Post by *Fla$her »

petermad wrote: 2023-05-24, 22:21 UTC It works fine here IF the folder Tabs\ exists - if it doesn't exist, nothing happens - no error message
The Tabs folder has been created for me for a very long time.
Overquoting is evil! 👎
User avatar
Stefan2
Power Member
Power Member
Posts: 4155
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: [TC 11.00b3] Placeholders like %P%N in internal associations and user-defined hotkeys

Post by *Stefan2 »

BTW, what's now "A+J_params" ?
Alt + J + ?

Something new?
Some pointer please
petermad wrote: 2023-05-24, 22:21 UTC

Code: Select all

[ShortcutsWin]
A+J=SAVETABS
A+J_params="%|COMMANDER_PATH|\Tabs\Current.tab"


 
User avatar
AntonyD
Power Member
Power Member
Posts: 1246
Joined: 2006-11-04, 15:30 UTC
Location: Russian Federation

Re: [TC 11.00b3] Placeholders like %P%N in internal associations and user-defined hotkeys

Post by *AntonyD »

2Stefan2
Shortcut A+J will call command SAVETABS with applying to it additional '_params' which are: "%|COMMANDER_PATH|\Tabs\Current.tab"
#146217 personal license
User avatar
Stefan2
Power Member
Power Member
Posts: 4155
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: [TC 11.00b3] Placeholders like %P%N in internal associations and user-defined hotkeys

Post by *Stefan2 »

Ah, it's a pair, like
Filter1=*.pdf
Filter1_open=
Filter1_Print=

A+J=
A+J_params=


Thank you.
Is this '_params' a proposal or already implemented and somewhere documented?



 
Fla$her
Power Member
Power Member
Posts: 2299
Joined: 2020-01-18, 04:03 UTC

Re: [TC 11.00b3] Placeholders like %P%N in internal associations and user-defined hotkeys

Post by *Fla$her »

Stefan2 wrote: 2023-05-25, 07:49 UTC BTW, what's now "A+J_params" ?
Alt + J + ? 
[ShortcutsWin] > Win + Alt + J
Stefan2 wrote: 2023-05-25, 08:39 UTC Is this '_params' a proposal or already implemented and somewhere documented?
Implemented in addition to my request, but not yet documented for the ini sections.
For [shortcuts] this information is missing at the beginning of these pages:
Settings in the file wincmd.ini - Part 3
Aufbau der Datei wincmd.ini (Teil 3)
Overquoting is evil! 👎
User avatar
Stefan2
Power Member
Power Member
Posts: 4155
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: [TC 11.00b3] Placeholders like %P%N in internal associations and user-defined hotkeys

Post by *Stefan2 »

Fla$her wrote: 2023-05-25, 09:01 UTC
Stefan2 wrote: 2023-05-25, 08:39 UTC A+J=
A+J_params=
Is this '_params' a proposal or already implemented and somewhere documented?
Implemented in addition to my request, but not yet documented for the ini sections.

For [shortcuts] this information is missing at the beginning of these pages:
Settings in the file wincmd.ini - Part 3
Aufbau der Datei wincmd.ini (Teil 3)


OK, fine. Thank you.


 
User avatar
petermad
Power Member
Power Member
Posts: 14796
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 11.00b3] Placeholders like %P%N in internal associations and user-defined hotkeys

Post by *petermad »

Fla$her wrote: 2023-05-25, 06:44 UTC
petermad wrote: 2023-05-24, 22:21 UTC It works fine here IF the folder Tabs\ exists - if it doesn't exist, nothing happens - no error message
The Tabs folder has been created for me for a very long time.
OK, but does its still not work for you in TC 11.00b4?
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