Free 14-Day Evaluations    
Product Downloads    

Sign in     


DESKTOP MOBILE DOWNLOAD PURCHASE SUPPORT INFO COMPANY
 Home  >>  Support  >>  Knowledge Base

Archive for the 'CScript' Category

TE.SetRGBEntry() Is Not Immediate

Monday, April 30th, 2007

The CScript command te.SetRGBEntry() does not change colors already on screen. It only takes effect when the screen is refreshed. For example, if you use the keyboard to scroll back and forth — Ctrl-PageUp and Ctrl-PageDown — the screen clears in the correct colors.

The colors don’t always change immediately, either. If you set up a startup script with a color change, it’s not in effect until something “pushes” it. Typing clear at a shell prompt is not enough. However, if you run Midnight Commander on Linux for example (enter mc at a shell prompt), the colors come up correctly. When you exit Midnight commander, though, the screen washes clear in a blue background before returning to the correct colors. Then you can use clear successfully at the prompt.

CR 649

PF Keys in Script

Monday, April 30th, 2007

Unlike ASCII terminals, the PF keys on an IBM 3270 or 5250 terminal send coded network signals. Since they’re not composed of ASCII sequences, there’s no way to use the te.xmit() CScript command to send the appropriate key.

CR 645

TE.Read() Ignores Numeric Keypad

Monday, April 30th, 2007

The CScript command te.read() does not accept input from the numeric keypad when NumLock is on. When NumLock is off, te.read() outputs odd characters instead.

CR 616, fixed in TinyTERM 4.7.2, 15 March 2012

Post Session Start Script Only Runs Once

Monday, April 30th, 2007

Set up a script as the Post session start script. When you first open the .tpx file, the script runs. Click the Open button, or go to the File menu and select Open Session, and open the same .tpx a second time. The script doesn’t run.

Close all the open sessions, but not TinyTERM itself, then open the same .tpx file. The Post session start script still doesn’t run. It only runs the first time you open the .tpx, until you close TinyTERM and start over.

CR 586

Post Session Start Script Doesn’t Run in Non-Default Install

Friday, April 27th, 2007

When TinyTERM is not installed to the default directory C:\Program Files\Century\TinyTERM, a Post session start script won’t run. This is particularly evident when TinyTERM is installed to a drive other than C:.

CR 561

tsi_retval() Always Returns 0 from tsl_wait()

Thursday, April 26th, 2007

When used in conjunction with the tsl_wait() compatibility command, tsi_retval() always returns 0. tsl_wait does have the same position-dependent return value capabilities that te.wait() does, but tsi_retval() ignores them.

CR 330

Error (4514) Bad Argument to Function

Wednesday, April 25th, 2007

In a CScript that does multiple FTP file transfers, the second transfer can generate the message, “Error (4514) Bad argument to function: Expected number, got undefined.”

The following script also exhibits the problem:

FTSetProtocol(“FTP”);
FTSetHostName(“ftp.domain.net”);
FTSetUserName(“anonymous”);
FTSetPassword(“user@domain.com”);
FTSetSync(1);
FTSetXferStat(false);
FTGet(“/pub/README”,”C:/Temp”);

If you use FTSetXferStat(true); instead of false, the error doesn’t happen. But it does if you set the End of transfer acknowledgement option in TinyTERM’s File Transfer Properties.

This error is not consistent across versions of TinyTERM or Windows, nor does every script with multiple FTP file transfers exhibit the problem.

CR 234, multiple transfer error resolved in TinyTERM 4.7.2, 15 March 2012
CR 778, script

TSL_Trans() Fails

Wednesday, April 25th, 2007

The CScript command tsl_trans() is ignored. It compiles and executes if entered properly, but it does nothing. The same is true of the TERM Script Language command TRANS, if run in TinyTERM 4.x.

CR 192

Editable, Dockable Ribbon Bar and Menus

Monday, April 23rd, 2007

Customers have requested that the Ribbon Bar and menus in TinyTERM be made editable, to allow custom buttons and menu items. While the Ribbon Bar cannot be edited in TinyTERM 4.x, the menus can be edited using CScript commands.

It has also been requested that the tool bars be dockable, able to be moved to different positions in the TinyTERM window. This is not possible currently with any Century Software, Inc., product for Windows.

CR 10, menu
CR 23, Ribbon Bar

List Script Causes TinyTERM to Crash

Monday, April 23rd, 2007

The following CScript causes TinyTERM to crash about 20 seconds after it completes. The script simply draws a window, then allows the user to pick a phone number from a list provided by a plain text data file. It then displays the selected phone number in the TinyTERM window:

// initialize variables

var numsites = 5; // change this value for the actual number of sites in the file
var site = dimstr(numsites);
var phonenum = dimstr(numsites);
var listfile = "QLClist.txt"; // change for actual list file
var tempstr,counter;
var chosen = -1;
var tempInt;

// read phone numbers from list file

fopen(1,listfile,"RA");
counter = 0;
while (counter < numsites)
{
tempstr = freadln(1,-1);
site[counter] = field(tempstr,1,_asc("="));
phonenum[counter] = field(tempstr,2,_asc("="));
counter++;
}

fclose(1);

// create listbox window

tsl_dlgopen( 76, -1, -1, 240, 320, 0, 0, 200, "Dialing List", "");
tsl_atobjinit();
counter = 0;
while (counter < numsites)
{
tsl_atobjaddlist(site[counter]);
counter++;
}
tsl_atobjdone(111,9,5,5,250,200,(0)|16385,"","",0,0,-1,"chosen", "");
tsl_atobjinit();
tsl_atobjdone(101,13,260,5,0,0,(258)|16384,"&Dial","",4,412,-1,"", "");
tsl_atobjinit();
tsl_atobjdone(102,13,260,35,0,0,(258)|16384,"Cancel","", 8,27,-1,"", "");
tsl_at_read( 0, "", 13);
tsl_wclose( 76);

tempInt = _asc(chosen) - _asc("0");
te.display(site[tempInt] + "\r\n");
te.display(phonenum[tempInt] + "\r\n");

return(0);

The bug is in the tsl_atobjinit(); command. It’s fixed in TinyTERM 4.53.

CR 772

  Copyright © 2024 Century Software, Inc. All Rights Reserved999 TERMS OF USE PRIVACY POLICY EULA