Custom hotkeys for opening files

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
Publipor
Junior Member
Junior Member
Posts: 4
Joined: 2022-12-31, 12:17 UTC

Custom hotkeys for opening files

Post by *Publipor »

Hi there. It is possible to open a file with an external program, but not by dragging it (file ) to the icon in the toolbar, but by using hotkeys.
PS.The text was translated through a translator. Sorry for my English
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6975
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Custom hotkeys for opening files

Post by *Horst.Epp »

Why don't you use parameters in the button for your program to open the file ?
If you want to use a hotkey, define an em_command for your tool.
Then you can assign a hotkey to it under Configuration / Misc
Windows 11 Home, Version 24H2 (OS Build 26100.4061)
TC 11.55 RC2 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.4 x64
User avatar
Hacker
Moderator
Moderator
Posts: 13142
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Re: Custom hotkeys for opening files

Post by *Hacker »

Horst.Epp,
Why don't you use parameters in the button for your program to open the file ?
One argument might be that some people prefer using the keyboard compared to a mouse.

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
Publipor
Junior Member
Junior Member
Posts: 4
Joined: 2022-12-31, 12:17 UTC

Re: Custom hotkeys for opening files

Post by *Publipor »

Horst.Epp wrote: 2022-12-31, 13:05 UTC Why don't you use parameters in the button for your program to open the file ?
If you want to use a hotkey, define an em_command for your tool.
Then you can assign a hotkey to it under Configuration / Misc
Image: https://paste.pics/fe34cf0c455ca7170aecf71135461ff9
Thanks for the answer. Could you tell me which command should be inserted so that the program picks up the path to the file
User avatar
petermad
Power Member
Power Member
Posts: 16032
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Custom hotkeys for opening files

Post by *petermad »

2Publipor
Could you tell me which command should be inserted so that the program picks up the path to the file
Use %P%N instead of %D

%P%N is the file (with full path) under the cursor in TC's file panel
%D is for a file containing a list of the selected file names.
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
Publipor
Junior Member
Junior Member
Posts: 4
Joined: 2022-12-31, 12:17 UTC

Re: Custom hotkeys for opening files

Post by *Publipor »

petermad wrote: 2022-12-31, 15:24 UTC 2Publipor
Could you tell me which command should be inserted so that the program picks up the path to the file
Use %P%N instead of %D

%P%N is the file (with full path) under the cursor in TC's file panel
%D is for a file containing a list of the selected file names.
Thank you for helping to solve the problem. Happy holidays to you
Post Reply