|
Archive for the 'Scripting' Category
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
Posted in CScript, FTP | Comments Off on Error (4514) Bad Argument to Function
Wednesday, April 25th, 2007
On a UNIX system, disable getty on a modem port. Then run a TERM script that does an answer wait on the modem. The script should continue to execute when someone dials into that modem.
When you run this script in the background using the ampersand character:
term modemscript.cmd &
the script never answers the modem, even if the script works properly run without the & switch. The TERM process runs, but it does not answer the modem.
CR 224
CR 228, all background scripts fail on Sun
Posted in Modem, TERM, TSL | Comments Off on TERM in Background Doesn’t Answer Modem
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
Posted in CScript, TSL | Comments Off on TSL_Trans() Fails
Wednesday, April 25th, 2007
Neither TinyTERM nor TERM provides an API for use with Java. It would make some automation more convenient, and so has been requested in the past, but this enhancement has not been added at this time.
CR 156
Posted in Scripting | Comments Off on Java API
Wednesday, April 25th, 2007
The server.cmd script included with TERM for AIX does not list the ZMODEM or WTERMCRC file transfer protocols. So if you run:
term -x server
those protocols are unavailable from the menus. To work around this, run TERM in server mode instead:
WTERMCRC: term -1x
ZMODEM: term -2x
CR 129
Posted in TSL, WTERMCRC, ZMODEM | Comments Off on Protocols Missing from AIX Server.cmd
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
Posted in CScript, Windows | Comments Off on Editable, Dockable Ribbon Bar and Menus
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
Posted in CScript | Comments Off on List Script Causes TinyTERM to Crash
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
Posted in CScript | Comments Off on Fread() Character Limit
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
Posted in CScript | Comments Off on TE.GetSelection() Fails When a Single Row Is Highlighted
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
Posted in 3270, CScript | Comments Off on TE.GetSelection() Fails in TN3270
|