Bug in TCMD but not in TCC

Jun 28, 2008
6
0
If I use the WinBatch SendKeysTo() to send the string "e:\web\" to TCC 13.04.52 x64, the string is received properly as "e:\web\".
But if I use the exact same WinBatch script to send "e:\web\" to TCMD 1313.04.52 x64, the string is received in TCMD as "e;\web\".

As you can see the colon ":" is handled/rendered properly by TCC, but improperly as a semicolon ";" by TCMD.

This behavior has been going on for several versions, several months. I had hoped it would be fixed. I went from TCMD 11 to 13 (skipping 12). I think (if memory serves) that this improper behavior began with TCMD 13. But, since I did not use 12, it could have begun in 12.
 
May 20, 2008
11,380
98
Syracuse, NY, USA
If I use the WinBatch SendKeysTo() to send the string "e:\web\" to TCC 13.04.52 x64, the string is received properly as "e:\web\".
But if I use the exact same WinBatch script to send "e:\web\" to TCMD 1313.04.52 x64, the string is received in TCMD as "e;\web\".

As you can see the colon ":" is handled/rendered properly by TCC, but improperly as a semicolon ";" by TCMD.

This behavior has been going on for several versions, several months. I had hoped it would be fixed. I went from TCMD 11 to 13 (skipping 12). I think (if memory serves) that this improper behavior began with TCMD 13. But, since I did not use 12, it could have begun in 12.
I can reproduce that in a way. The SHRALIAS DLL I inject into Explorer also has a hotkey server. One of the things it will do from a hotkey is send keystrokes. I asked it to have F6 send "::;;" and then (at the next prompt) pressed F6 in TCMD. Here's what I saw (all semicolons):


Code:
v:\> shrhotkey f6 **sendkeys** ::;;
 
Key: F6
Command: **sendkeys**
String: ::;;
 
Add hotkey? (Y/N) ... y
 
Message sent to ShrAlias++
 
v:\> ;;;;

It does not happen if I send the keys to TCC and it does not happen in a similar experiment with KEYSTACK.

I tried it again with the string "AaAa". The result in TCMD (only) was "aaaa".
 
May 20, 2008
11,380
98
Syracuse, NY, USA
Send the keys to the command input window (that's one of the reasons it's there!).

This is an old (old, old, old) Windows bug when passing messages through a GUI app to a console app. KEYSTACK goes to great lengths to work around the bug.
It would seem that the Windows API has no idea that TCMD is going to pass them on to a console app.
Anyway, can you describe the bug or, better yet, the workaround so I can use it in my app?

**And** I noticed two peculiar behaviors in the forum today.

1. When I click "Reply" (to a post), the insertion point is on the line following some quoted text **AFTER** a space
2. When I insert code, it goes at the beginning of the post, before quoted text (before everything), regardless of where the insertion point is.

I hadn't seen that before.
 

rconn

Administrator
Staff member
May 14, 2008
12,340
149
1. When I click "Reply" (to a post), the insertion point is on the line following some quoted text **AFTER** a space

Not reproducible here.

2. When I insert code, it goes at the beginning of the post, before quoted text (before everything), regardless of where the insertion point is. I hadn't seen that before.

Not reproducible here.

Code:
this is some code
 
Similar threads
Thread starter Title Forum Replies Date
Dick Johnson v28 Cosmetic Bug Support 0
Jay Sage WAD Possible Bug With OPTION Command With @FILE Support 5
R strange bug? Support 7
Jay Sage Bug With Flow Control and/or Command Grouping Support 2
M Server 2019 Bug with @execstr? Support 14
R bug _ypixels in BDEBUGGER Support 6
E Fixed Bug with DIR /Z displaying descriptions Support 8
E Text copy bug Support 1
x13 SETARRAY /Z bug Support 6
Gamegod ffind bug with chinese Support 2
Dick Johnson cdd - is this a bug or a feature? Support 7
P "Set" command behavior - a bug? Support 3
nikbackm TCC 20 variable expansion bug Support 6
gentzel Bug launching external commands in 20.11.43 Support 11
R Is this a bug in SETARRAY? Support 2
M Windows Installer bug? Support 4
vefatica @SCRIPT bug persists Support 4
M Little bug, big consequences .. Support 6
fishman@panix.com Once again the Can't Install bug bites... Support 2
gentzel Fixed dirs +n bug in 20.0.12 x64 Support 2
M Bug in Windows 10, when adding symbol to task bar Support 6
Alpengreis [Bug?] View (V) Prefs Error (TC 18.00.27 x64) Support 4
D WAD Minor Post Installation Bug in V18 Support 1
I Possible Bug: History /n Returns Nothing Support 3
samintz WAD Weird REN bug Support 6
Jay Sage WAD Possible Bug in Batch Parameters Support 7
G Bug? TCC 16.03.55 Console Palette Support 4
S Return of FTP copy bug in 16.02.48 Support 12
S XenForo bug Support 3
D TCMD16 Delete Toolbar Button bug Support 7
keithg1964 WAD 16.0027 Alias /rz bug Support 8
rfaquino WAD Apparently a bug when expanding environment variable %ProgramFiles(x86) Support 2
T Documentation @LINE[CON,n] @LINES[CON] not documented (bug?) Support 4
H TIMER bug Support 4
G Fixed @REREPLACE bug Support 15
G WAD PDIR @IF bug, @WORD bug Support 8
M WAD A complaint regarding a very irritating TCC installation behavior... (Bug?) Support 4
nickles Renaming bug? Support 9
nickles Redirect bug? Support 4
nickles UrlDecode() bug? Support 3
P WAD Bug in TC v 13.03 build 39 x64 Support 1
S Debug feature bug? Support 17
Roedy CDD /S bug Support 3
J TCCLE 12.11 dirhistory bug Support 1
S MOVE from FTP directory to another FTP directory - bug?? Support 2
T Bug in variable expansion Support 4
M An undocumented limitation and an associated minor bug... Support 1
M High-Precision arithmetic bug... Support 1
nickles REN bug Support 11
Y 12.1 Bug ? Support 2

Similar threads