How to? TCC 15: popup windows; launching Perl scripts

Dec 7, 2009
238
2
Left Coast, USA
(TCC 15.01.52 x64 Windows 7 Build 7601 Service Pack 1)

I've been away from TCC for some time. It seems I've forgotten some things...The online help notes: popup windows can be moved/resized, and remember their sizes and positions. But the history and dirhistory windows sometimes resize themselves (always smaller than expected), with dirhistory sometimes shrinking to a single line. I have to keep resizing them manually -- especially dirhistory. I'd like to have at least 30 lines displayed. Can I set a default?

I'm having trouble invoking Perl (using 32-bit ActiveState Perl 5.16) scripts this way at the command line: scriptname.pl Result: Error (SYS): Invalid class string. Doesn't happen under cmd.exe. With the Perl support disabled via OPTION, the error message might appear, but I can't tell because a new TCC window opens and then closes too quickly to see what's in it.

If scripts are launched like this: perl.exe scriptname.pl — no problem. I have a .PL variable set as follows: .pl=c:\perl\bin\perl.exe. Assoc shows a definition for ".PL" ("perl.exe"). Prepending "perl.exe" would be ok for running Perl scripts via .btm files. But I'd like to avoid having to prepend "perl.exe" each time at the command line. What might I have set incorrectly? I know I noted this in a message quite a while ago. Wondering if anyone's had the same problem — and solved it. (Do I need to uninstall the x64 version of TCC and install the 32-bit version?)

Thanks in advance.
 
May 20, 2008
11,388
99
Syracuse, NY, USA
My experience is that the directory history window does remember its size but will appear smaller if there's not enough history to fill it. It will grow with the addition of new directories until it reaches the saved size.
 
Dec 7, 2009
238
2
Left Coast, USA
I'm finding that the dirhistory window is always reducing the number of lines it displays, even when there's enough screen real estate to show everything currently in the history without need to scroll the list. It's always at least one line short. When it contains only, say, 1-3 entries, sometimes it shrinks so far height-wise that not even a complete line is displayed — then, even scrolling doesn't help because there's only a partial line (again, height-wise) of text displayed in the popup window.
 
Last edited:
Dec 7, 2009
238
2
Left Coast, USA
Screen shot: there are 4 entries in the history at the moment. Only one is displayed. This time, the one line is displayed at full height rather than being cut off.
 

Attachments

  • Small-dir-history-popup.jpg
    Small-dir-history-popup.jpg
    12.7 KB · Views: 85

rconn

Administrator
Staff member
May 14, 2008
12,340
149
Remove the popup window directives from your TCMD.INI. If you have the old-style (row/column) directives, TCC will use those (and truncate the window view). If you delete them, TCC will rewrite them to the new pixel-based format, and save the values whenever you resize the window.
 

rconn

Administrator
Staff member
May 14, 2008
12,340
149
I'm having trouble invoking Perl (using 32-bit ActiveState Perl 5.16) scripts this way at the command line: scriptname.pl Result: Error (SYS): Invalid class string. Doesn't happen under cmd.exe. With the Perl support disabled via OPTION, the error message might appear, but I can't tell because a new TCC window opens and then closes too quickly to see what's in it.

Turn off Perl in OPTION / Startup / Scripting.
 
Dec 7, 2009
238
2
Left Coast, USA
Remove the popup window directives from your TCMD.INI. If you have the old-style (row/column) directives, TCC will use those (and truncate the window view). If you delete them, TCC will rewrite them to the new pixel-based format, and save the values whenever you resize the window.

Hi Rex -- concerning the pop-up windows: this being a brand-new TCC installation — with nothing "carried over" from any older installations of JPS products — there aren't any popup directives in the .INI file as far as I can tell. ...Um, no, I'm wrong about that... I just took another look in the .INI file. There are PopupWin* directives in there after all. I will comment them out and try again.

There don't seem to be any popup-window-related settings in the OPTION dialog — how do they get into the .INI file? Thanks.
 
Dec 7, 2009
238
2
Left Coast, USA
Turn off Perl in OPTION / Startup / Scripting.

I've tried it both ways:

(1) Perl disabled in Startup/Scripting: launching a script at the command line by typing scriptname.pl causes a second TCC window to open and close very quickly. It disappears so fast that I can't see what happens in it. Nothing further happens in the original TCC console window.

(2) Perl enabled in Startup/Scripting: launching the script that same way at the command line ("scriptname.pl") produces the Error (SYS): Invalid class string error message.
  • Precede scriptname.pl command with "start": new TCC console window opens, with TCSTART launching first. When TCSTART is finished, the Error (SYS): Invalid class string message appears in the new window; the script doesn't execute (and nothing happens in the original TCC window).
Well . . . do I possibly need to consider switching back to 32-bit TCMD, since I'm using 32-bit Perl (I won't touch 64-bit Perl with a 20-foot cattle prod)? If so how difficult is it to do a license swap in swapping TCMD/TCC versions — and is there any significant drawback to running 32-bit TCMD in a 64-bit o.s.?

Thanks.
 
Dec 7, 2009
238
2
Left Coast, USA
Rex — at this point I expect that the only practical solution is to go back to a 32-bit TCMD version. If I do, what's required in terms of replacing the paid/registered 64-bit version with a 32-bit version?

And: is there any significant drawback to running 32-bit TCMD on this hardware, with its 64-bit o.s. version?
 
May 20, 2008
3,515
4
Elkridge, MD, USA
FYI: Just install 32b TCMD, and register it with the same key. It will allow you to use the plugins without 64b versions. I have both 32b and 64b versions installed on my other machine. You can even run 32b TCC in a tab of 64b TCMD AFAIK. You can just switch between the 32b and 64b versions, depending on what you are doing. Use 32b when using PERL, 64b for other things.
 
Similar threads
Thread starter Title Forum Replies Date
C COMSPEC constantly reset to TCC.EXE Support 6
rconn News Take Command / TCC / CMDebug / TCC-RT v28 Released Support 0
C How to? starting TCC/TCMD v25 Support 2
CWBillow TCC and TCMD in Powershell Support 6
rconn News Take Command / TCC / CMDebug / TCC-RT 27.01.24 uploaded Support 0
rconn News Take Command / TCC / CMDebug / TCC-RT 27.01.23 uploaded Support 0
Alpengreis Fixed Crash after copy dialog with big TCC.exception.log Support 5
rconn News Take Command / TCC / CMDebug / TCC-RT v27.01 Build 22 Uploaded Support 0
L FTYPE in TCC, less quirky than in cmd.exe Support 3
V Set path permanently from within TCC? Support 3
DrusTheAxe Runaway TCC.exception.log filling drive Support 5
rconn News Take Command / TCC / CMDebug / TCC-RT 27.0.21 uploaded Support 0
Joe Caverly tcc.exception.log Support 3
rconn News Take Command / TCC / CMDebug / TCC-RT 27.0.20 uploaded Support 0
rconn News Take Command / TCC / CMDebug / TCC-RT 27.0.19 Support 0
FreezerBurnt Help making a CMD and TCC compatible batch file Support 7
vefatica SCRIPT ... TCC disappears Support 2
rconn News Take Command / TCC / CMDebug / TCC-RT v27.0.18 Support 0
Jesse Heines Access Denied errors in TCC 27 Support 9
fpefpe How to? tcc inifile (%_ininame) Support 3
M How to? Black TCC Prompt Support 2
D Differences between TCC and CMD with COPY /b Support 4
M Oracle batch OPatch.bat.bat not working in TCC but correctly in CMD Support 5
Jay Sage Extra TCC Tasks Support 6
vefatica Can I turn off the minimize to tray mechanism in TCC? Support 5
N Command execution slows down in TCC Prompt after a while Support 6
R Upgrade TCMD 19 to TCC 26 Support 1
Joe Caverly Set a batch variable (%1 - %n) when TCC is executing a batch file Support 5
samintz How to? Is this doable in TCC? Support 2
rconn News Take Command / TCC / CMDebug / TCC-RT 26.02.41 Uploaded Support 0
D TCC tab detaching & restarting Support 3
Ó Recent git output not shown on TCC Support 1
P Kill all other instances of tcc from a btm batch file Support 2
L Using TCC.exe through an SSH connection Support 3
M TCC color issue in ConEmu Support 4
Alpengreis UTF-8 problem in TCC related to Python Support 7
Alpengreis Python support for 3.8.3 in TCC v26.x? Support 2
rconn News Take Command / TCC / CMDebug / TCC-RT 26.01.40 uploaded Support 0
Peter Murschall TCC V26.01.3x Debugging has problems with Alias /R Support 1
rconn News Take Command / TCC / CMDebug / TCC-RT 26.0.37 Uploaded Support 0
vefatica TCC waits for Office apps Support 4
Joe Caverly .BAT works in TCC-RT 25, but not in TCC-RT 26 Support 4
M Strange error messages from TCC in FTP copy Support 7
Kachupp Documentation tcc-rt versions Support 1
V Comments from a first-time user (TCC 26) Support 6
rconn News Take Command / TCC / CMDebug / TCC-RT 26.0.28 Support 0
C TCC 26 BATCOMP BTM problems? Support 5
E TCC/CMD difference Support 5
rconn News Take Command / TCC / CMDebug / TCC-RT Public Beta RC2 Support 0
rconn News Take Command / TCC / CMDebug / TCC-RT v26 Public Beta build 26.0.21 Support 0

Similar threads