user command title include space character
Moderators: Hacker, petermad, Stefan2, white
user command title include space character
if you added new user command with title contain spaces e.g. em_My Cmd, it will accepted but when you finish creating this command the final result will be em_My and if you try to execute it you will get "Function not implemented!" message.
maybe you should not let the user enter spaces in the usercmd.ini/wcmd_xxx.ini dialog box or it is better to auto replace spaces in the title with underscore "_"
maybe you should not let the user enter spaces in the usercmd.ini/wcmd_xxx.ini dialog box or it is better to auto replace spaces in the title with underscore "_"
the problem is not how to write "_" but it is that TC accept titles including spaces then truncates it when you choose this commandSombra wrote:Try to use the code ALT+255 by space, it work fine for me.
[em_mine(ALT+255)commannd]
BTW: writing "_" with my keyboard is much easier just Shift+minus symbol

Yes, I'm agree with you. I also hope view that it works as you describe in final versionthe problem is not how to write "_" but it is that TC accept titles including spaces then truncates it when you choose this command

(ALT+255) Only is a temporary solution for solve the aesthetic of commands.
I can read English, but... I write like Tarzan. (sorry)
- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
em_ is not forbidden! It may be used for some often needed command, e.g. on the command line.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
If i am not wrong, Sombra was not speaking about writing "_" symbol, that obviously is much easier to write with Shift+minus symbol, he was talking about being able to use spaces in em_xyz commands.ts4242 wrote:the problem is not how to write "_" but it is that TC accept titles including spaces then truncates it when you choose this commandSombra wrote:Try to use the code ALT+255 by space, it work fine for me.
[em_mine(ALT+255)command]
BTW: writing "_" with my keyboard is much easier just Shift+minus symbol
"_" char Hex value is 5F
ALT+255 Hex value is A0
Space char Hex value is 20
So that you should try [em_mine(ALT+255)command] to get [em_mine command] as Sombra said, it works .
#160
2ts4242
Hello !
• Maybe ALT+0160 could do the trick ? This is an ANSI coded space I use without any problem in various places…
- Without "0", one types an ASCII code, it's well known…
KR
Claude
Clo

• Maybe ALT+0160 could do the trick ? This is an ANSI coded space I use without any problem in various places…
- Without "0", one types an ASCII code, it's well known…

Claude
Clo
#31505 Traducteur Français de T•C French translator Aide en Français Tutoriels Français English Tutorials
Re: #160
(Alt+255) and (Alt+0160) type space in text editor (Notepad) but inside TC, the both type the same local characterClo wrote:• Maybe ALT+0160 could do the trick ?
I think this is is because my "Regional and Language options" for non-unicode programs
Re: #160
That seems to be the reason of the problem, Sombra&I use same regional settings (Spanish).ts4242 wrote: I think this is is because my "Regional and Language options" for non-unicode programs
I've checked Clo's ALT+0160 and i get same HEX value that with ALT+255 A0.
I am not sure if this will help you, but i had a similar problem time ago (not with Tc but with Batch files), i solved it using UltraEdit -> Format Menu -> OEM to ANSI or ANSI to OEM commands.ts4242 wrote: (Alt+255) and (Alt+0160) type space in text editor (Notepad) but inside TC, the both type the same local character
Maybe this way you'll get local char in UltraEdit but space char in Tc. Bye.
Re: #160
Not help!sas2000 wrote:I am not sure if this will help you, but i had a similar problem time ago (not with Tc but with Batch files), i solved it using UltraEdit -> Format Menu -> OEM to ANSI or ANSI to OEM commands.
Maybe this way you'll get local char in UltraEdit but space char in Tc. Bye.
maybe according to my local language code page i should use different code than Alt+255 to type space, but because i'm not interested to have spaces in em_xxx commands so i'll not search
