Creating em_xyz commands

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
sas2000
Power Member
Power Member
Posts: 682
Joined: 2003-02-07, 04:32 UTC
Location: Galiza

Creating em_xyz commands

Post by *sas2000 »

 
Hi, i'd like to know if there is any type of syntax limitation when creating em_xyz commands in usercmd.ini.

Is it possible to use symbols (+ ' á &) ?.

What is the maximum number of characters that can be used ?
(In totalcmd.inc there is a cm_xyz command with 28 chars "cm_UnselectCurrentExtension")


 
Thanks.
 
 
User avatar
Hacker
Moderator
Moderator
Posts: 13068
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

[mod]Moved to the TC7 beta discussion forum.

Hacker (Moderator)[/mod]
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.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Well, don't use square brackets [], because then the command cannot be found in usercmd.ini because it's saved as a header:

[em_commandname]

Spaces also do not work, but TC removes them. The name length is limited to 259 characters, but I don't think that anyone would create such long names...
Author of Total Commander
https://www.ghisler.com
User avatar
m^2
Power Member
Power Member
Posts: 1413
Joined: 2006-07-12, 10:02 UTC
Location: Poland
Contact:

Post by *m^2 »

ghisler(Author) wrote:The name length is limited to 259 characters.
257. The brackets...
User avatar
sas2000
Power Member
Power Member
Posts: 682
Joined: 2003-02-07, 04:32 UTC
Location: Galiza

Post by *sas2000 »

 
ghisler(Author) wrote:but I don't think that anyone would create such long names...
My problem with Tc' >259 chars support , it only affects full file names  :wink: .

Thanks.
 
User avatar
sas2000
Power Member
Power Member
Posts: 682
Joined: 2003-02-07, 04:32 UTC
Location: Galiza

Post by *sas2000 »

 
ghisler(Author) wrote: Spaces also do not work
It is possible to use spaces in em_xyz commands using this Sombra' trick .
Sombra wrote:Try to use the code ALT+255 by space, it work fine for me.

[em_mine(ALT+255)commannd]
Bye.
  
Post Reply