[Alias] section doesn't support command code

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

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
ts4242
Power Member
Power Member
Posts: 2081
Joined: 2004-02-02, 20:08 UTC
Contact:

[Alias] section doesn't support command code

Post by *ts4242 »

When trying to implement Alias in Hotkeys Editor i discovered that,
Alias section doesn't support saving command by decimal or hexdecimal code
it is supposed to be like [Shortcuts]
try this

Code: Select all

[Alias]
a1=508
a2=$1FC
a3=cm_PackFiles
only a3 will work!

is this will remains or will fixed next release?
important to know so that i exclude Alias when saving as Decimal or Hexdecimal
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48079
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thanks for the info - I will try to add it, because it would be more consistent with the rest of the program.
Author of Total Commander
https://www.ghisler.com
User avatar
ts4242
Power Member
Power Member
Posts: 2081
Joined: 2004-02-02, 20:08 UTC
Contact:

Post by *ts4242 »

fixed in beta 3
User avatar
ts4242
Power Member
Power Member
Posts: 2081
Joined: 2004-02-02, 20:08 UTC
Contact:

Post by *ts4242 »

alias saved as decimal or hexdecimal not work again in beta 4

i think this happened due to this change
31.01.07 Fixed: Removed execution of internal commands by number in command line, because it was causing a lot of confusion. Use the cm_ commands instead.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48079
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Indeed this has been removed too, sorry. I don't think that the two are possible at the same time.
Author of Total Commander
https://www.ghisler.com
User avatar
ts4242
Power Member
Power Member
Posts: 2081
Joined: 2004-02-02, 20:08 UTC
Contact:

Post by *ts4242 »

I think it is easy to distinguishing between executing command by direct input its code or through the alias!

but Why not combine the two possibilities? that is, if the user enter a command code, first check if there is a file exist using this code as a name if not, execute the internal command. so the priorty is for opening the file.

i guess you're already do this when the user enter a command text but here the priorty is for executing the internal command.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48079
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I could make the alias command work again with numbers. Private beta testers may test it already.
if the user enter a command code, first check if there is a file exist using this code
Unfortunately that's not so easy. The function used to open files, ShellExecuteEx, supports not only the execution of programs from several paths, but also all kinds of extensions like launching URLs (http something).
Author of Total Commander
https://www.ghisler.com
User avatar
ts4242
Power Member
Power Member
Posts: 2081
Joined: 2004-02-02, 20:08 UTC
Contact:

Post by *ts4242 »

ghisler(Author) wrote:Unfortunately that's not so easy.
Why?
maybe i didn't described it well!
I mean, if a user enter code like 907 and the execution failed, TC popup message says "File not found!", So before you showing this messag, check if this code is for an internal command, if so execute it otherwise show the message as normal.
User avatar
ts4242
Power Member
Power Member
Posts: 2081
Joined: 2004-02-02, 20:08 UTC
Contact:

Post by *ts4242 »

alias saved as decimal or hexdecimal work again in RC1

I hope you could find a solution for execution command by code from command line if there is no file use this code, I missed it a lot! :cry:
Post Reply