Free 14-Day Evaluations    
Product Downloads    

Sign in     


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

Archive for the 'CScript' Category

Fread() Character Limit

Monday, April 23rd, 2007

The fread() script command has a 256-character limit, even when you set it to read to the end of a line. This was increased to an effectively unlimited size in TinyTERM 4.40.

CR 603

TE.GetSelection() Fails When a Single Row Is Highlighted

Monday, April 23rd, 2007

The CScript command te.GetSelection(0,0,0,0,0); returns the currently highlighted text in the TinyTERM window as a string. However, if the text you highlight only covers one row, it returns an empty string every time after the first.

In other words, the first time you use that command, it will return the correct text no matter how much is highlighted. It will then return an empty string on every subsequent use if only one row of text is highlighted.

CR 578, fixed in TinyTERM 4.40

TE.GetSelection() Fails in TN3270

Monday, April 23rd, 2007

When used with TN3270 emulation, the te.GetSelection() command returns an empty string. It works with the text-based emulations.

CR 525, fixed in TinyTERM Plus 4.40

Documentation on Translated Scripts

Monday, April 23rd, 2007

The tsltrans.exe program included with TinyTERM 4.x will convert TERM Script Language files to CScript. However, it was not always well-documented. The tsl_ commands that it uses are documented in the current Programmers Reference Manual.

CR 52

Opsys2() Not Documented

Monday, April 23rd, 2007

CScript includes the opsys2() command, which should return a numeric value based on the version of Windows in use. It’s not fully documented in TinyTERM versions prior to 4.31. If you have an older version of TinyTERM, you can download updated CScript documentation.

CR 493, fixed in TinyTERM 4.31

Script_Shutdown() and Script_Disconnect() Execute Too Early

Monday, April 23rd, 2007

Configure a session to close on disconnect, and set up outfirst.cs as the Post-session start script. Restart TinyTERM, then connect to a host and login. On logout, script_disconnect() prevents TinyTERM from closing automatically. Script_shutdown() does the same thing.

CR 477, fixed in TinyTERM 4.31

Close Session on Disconnect Fails with Outfirst.cs

Friday, April 20th, 2007

If you check the Session Properties option Close session on disconnect and exit in conjunction with using the outfirst.cs script, TinyTERM tries to close the session before the server does. You get the outfirst.cs warning message several times before you can finally disconnect. After you disconnect, TinyTERM does not close.

CR 440, fixed in TinyTERM 4.31

Position-Dependent Return Value for Te.Wait()

Friday, April 20th, 2007

The CScript command te.wait() allows multiple-case wait strings; e.g.,

return_value = te.wait(“my name^S|^Syour name”,0);

which will return 0 if either “my name” or “your name” is received. The WAIT command in TERM Script Language allows a similar structure:

wait “my name|your name”

but the return value is position-dependent. In the above example “my name” would return 0 to the _retval variable, and “your name” would return 1.

This functionality was added to te.wait() in TinyTERM 4.30.

CR 392

Te.Cread() Doesn’t Read Properly

Friday, April 20th, 2007

The te.cread() command does not work properly in early versions of TinyTERM. If you set it up not to time out, but read a specific number of characters, it will not read all the characters you specify. Instead it will complete its action after an unknown amount of characters are read. This was corrected in TinyTERM 4.30.

CR 383

Te.Comin() Documentation

Friday, April 20th, 2007

The documentation for te.comin() originally read:

String ComIn
ComIn()
Waits for a character to be received at the communications line, and returns it as a string.
ltr = te.ComIn();

This is incorrect. te.comin() does not wait, but checks the communications line instantaneously. The current, correct documentation reads:

String ComIn
ComIn()
Looks for a character to be received at the communications line and returns it as a string. If no character is received, returns a zero-length string.
ltr = te.ComIn();

CR 377, corrected in TinyTERM 4.30

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