Should i use only em_* in usercmd.ini?

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
MaxX
Power Member
Power Member
Posts: 1024
Joined: 2012-03-23, 18:15 UTC
Location: UA

Should i use only em_* in usercmd.ini?

Post by *MaxX »

Should i use only em_* in usercmd.ini?
Can I use another prefix?
Ukrainian Total Commander Translator. Feedback and discuss.
Fla$her
Power Member
Power Member
Posts: 2247
Joined: 2020-01-18, 04:03 UTC

Re: Should i use only em_* in usercmd.ini?

Post by *Fla$her »

Yes.
No.
Overquoting is evil! 👎
User avatar
Stefan2
Power Member
Power Member
Posts: 4133
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: Should i use only em_* in usercmd.ini?

Post by *Stefan2 »

MaxX wrote: 2023-06-01, 14:19 UTC Should i use only em_* in usercmd.ini?
Can I use another prefix?

We can only use [em_myDescription] for own created commands in the usercmd.ini
But for "cmd=" we can also use "cm_command" internal TC commands to execute.



 
User avatar
MaxX
Power Member
Power Member
Posts: 1024
Joined: 2012-03-23, 18:15 UTC
Location: UA

Re: Should i use only em_* in usercmd.ini?

Post by *MaxX »

Understood. Thanks.
Ukrainian Total Commander Translator. Feedback and discuss.
User avatar
beb
Senior Member
Senior Member
Posts: 430
Joined: 2009-09-20, 08:03 UTC
Location: Odesa, Ukraine

Re: Should i use only em_* in usercmd.ini?

Post by *beb »

2MaxX
here's an example:
usercmd.ini:

Code: Select all

[em_tc_restart]
cmd=cm_ConfigSavePos,cm_exit 29
Now the 'em_tc_restart' user command can be run from buttons and/or menus.
What it does:
Saves position (cm_ConfigSavePos = Configuration: Save position), and then restarts TC (cm_exit) with option 29,
where 29 = 1+4+8+16,
from:

Code: Select all

CM_EXIT supports the following parameters (sum of):
0 or no parameter: Just exit
1: Restart Total Commander
2: Restart Total Commander but switch between 32-bit and 64-bit versions (if the other exists in the same directory)
3: Note: 2 and 3 do the same thing
4: Save paths, directories, tabs, panels (brief, full, etc.), and display modes on exit even when it's disabled in the configuration
8: Pass the current left and right directories and file under the cursor to the new instance
16: Restart with full administrator rights (elevated) (32/64)
#278521 User License
Total Commander [always the latest version, including betas] x86/x64 on Win10 x64/Android 10
Post Reply