Free 14-Day Evaluations    
Product Downloads    

Sign in     


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

Archive for the 'Scripting' Category

Script Language Support in TinyTERM for Mac

Monday, November 12th, 2012

TinyTERM for Mac has no script language support. Century Software, Inc., has received a request to add that capability.

CR 1087

Compiled Script Files Limited to 98303 Bytes

Friday, August 17th, 2012

When a script is run in TinyTERM for Windows, it’s compiled first. That compiled file has a maximum size of 98303 bytes (one less than hex value 18000). This limits the size of uncompiled script files as well, depending on the commands used. The limit needs to be removed.

For script files too large to compile, the workaround is to split it into multiple .cs files, then create an overarching script that uses the CompileFile() command to execute the smaller scripts in order.

CR 1053

te.GetSelection() Fails in TN3270 Emulation

Friday, August 17th, 2012

When used in TN3270 emulation, the te.GetSelection() script command returns an empty string.

CR 1051

Error (4540) Can’t load module: tslui

Monday, April 9th, 2012

Scripts that use TSL compatibility commands for dialog boxes, etc., generate this error in TinyTERM version 4.7.x. The same error comes up when running TSL scripts directly, allowing them to convert on the fly.

CR 1034

Switch_SessUp() Only Runs When First Session Opens

Monday, April 9th, 2012

The Script_SessUp() function should be called automatically whenever a session opens. In 4.7.x, it only runs when first opening TinyTERM. Sessions opened afterward don’t run the callback function as they should.

CR 1029

Add Script Language Support

Friday, December 30th, 2011

TinyTERM ITX has no support for scripting. Century Software has received a request to add that functionality.

CR 995

Switch Sessions with a Keystroke

Thursday, May 12th, 2011

Up to nine sessions can be opened in a single TinyTERM window. By default you must use the mouse to select one of these sessions, either from the Session menu, or by clicking a session tab.

There are two ways to configure a key to switch sessions. Both are done through the keyboard editor. To open that, go to TinyTERM’s Edit menu and select Settings. Select the Keyboard tab, then click the Edit button to bring up the keyboard map.

1. Rotate between sessions
To map a key that will switch to the next session in order, click the Chart Open button. This brings up the Drag & Drop Tables.

On the right of the table are five buttons labeled F, 1, 2, 3 and 4. Click the F button to bring up the Keyboard Meta Functions.

In the function list, use the mouse to grab the NEXTSESS item. Drag and drop it onto the desired key. When this key is pressed, it will switch to the next session in the list, rotating back to the first session if the last is currently active.

2. Go to a particular session
You can also map a key to go to a specific session. Sessions are numbered internally from 0 up to 8, with session 0 being the first one opened. For this example, we’ll map the Alt+function keys to switch between two open sessions.

In the map, click the Alt key. Then click F1. The Keyname field will change to AF1. Change the Action field to COMMAND. In the Value field, enter this string:

 SwitchSess(0,0);

Click the Set button to make this active. This maps the first session (number 0) to Alt+F1.

Next, click the F2 key. The Alt key should remain clicked, so the Keyname will be AF2. Again change the Action to COMMAND, and enter this in the Value field:

 SwitchSess(1,0);

Click the Set button again. This maps the second session (number 1) to Alt+F2. This can be extended to as many as nine keys.

Once you finish mapping the desired keys , click the OK button to close the keyboard map. Back in Session Properties, click the Save As button to give the new keyboard scheme a name.

If you’ve used Alt keys as in the above example, click the Use Alt keys in emulation box. Otherwise, the keys will be used by Windows instead of TinyTERM. In particular, Alt+F4 will close TinyTERM.

Whether you’ve used Alt keys or not, click the Apply button to make the changes permanent. Then click OK to close the Session Properties.

From TinyTERM’s File menu, select Save Session. That will complete your new key configuration.

Right-Click Menu Always Comes Up

Tuesday, May 10th, 2011

In TinyTERM’s Session Properties, program the right mouse button to paste with the %p custom string. Right-clicking in the TT window still produces the copy/paste menu. The left and middle mouse buttons accept custom strings. But the right button ignores them. The workaround is to script the TE_EMouseDown event.

CR 927, fixed in TinyTERM 4.65.4849

Add 28800 Baud

Wednesday, December 9th, 2009

TinyTERM does support 28800 baud as a connection speed. You can set that with this script command:

te.baud = 28800;

But this option is not available in the user interface. Century Software has received a request to add it.

CR 887

GetBGColor() Always Returns 0

Monday, November 16th, 2009

Change the default background color in TinyTERM to anything other than the default blue. Then read the background color in CScript:

var test = te.GetBGColor(0);

test will always equal 0, regardless of the current background color.

CR 888

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