|
Archive for the 'CScript' Category
Thursday, May 3rd, 2007
The CScript command GetPath() always returns the file name its given, rather than the path to the file as documented. The sType argument does not affect this.
CR 818
Posted in CScript, Documents | Comments Off on GetPath() Returns the First Argument
Thursday, May 3rd, 2007
The DDE_Enable() documentation states that the command takes a Boolean argument. If you give it one, you get a “too many arguments” error.
DDE_Enable() actually takes no arguments at all. This means that once enabled in TinyTERM 4.x, DDE cannot be disabled.
CR 796, documented in TinyTERM 4.7.1
Posted in CScript, Documents | Comments Off on Incorrect DDE_Enable(); Documentation
Thursday, May 3rd, 2007
The documentation for te.SetRGBEntry() says it uses the same arguments as te.GetBGColor(). This is incorrect. There’s no “default” color to set, so the numbers are shifted down by one. This means black is 0 instead of 1, light white is 15 instead of 16, etc.
CR 793, fixed in TinyTERM 4.7.1
Posted in CScript, Documents | Comments Off on Incorrect TE.SetRGBEntry() Documentation
Thursday, May 3rd, 2007
This error comes from translated TSL scripts. The script will typically run correctly once, then generate this error on subsequent tries. Closing and reopening TinyTERM is the only workaround.
problem can be traced to the tsl_atobjdone() command. For example, this line caused the problem in one customer’s script:
tsl_atobjdone(111,9,5,5,250,200,(0)|16385,””,””,0,0,-1,”chosen”, “”);
Everything before this point executed correctly. Every tsl_ command after this one gave the above error, followed by a “Subscript out of bounds” message.
CR 784
Posted in CScript | Comments Off on Error (410) AT Command Valid Inside DLGOPEN Windows Only
Thursday, May 3rd, 2007
The TinyTERM Programmers Reference Manual does not mention the VT420 emulation under te.Emulation. The numeric value for VT420 is 31, for both getting and setting te.Emulation.
CR 782, added in TinyTERM 4.7.1
Posted in CScript, Documents | Comments Off on VT420 Not Documented for TE.Emulation
Wednesday, May 2nd, 2007
In TinyTERM’s Session Properties, set the Close session on disconnect and exit check box. Save the settings, then use the CScript command te.disconnect(). TinyTERM does not close, but it does disconnect. The workaround is this script fragment:
te.disconnect();
main_exit(0);
return(0);
Posted in CScript | Comments Off on Close on Disconnect Ignores TE.Disconnect()
Wednesday, May 2nd, 2007
Create a valid check box in TERM Script Language. Then run the script through tsltrans.exe. The resulting CScript file gives the error, “expected number, got string.” It’s due to incorrect translation. For example, this command:
at 104,10 id 4 tabstop get SENDCLMS checkbox “Send Claims”, 30,8
run through tsltrans.exe gives this line:
tsl_atobjdone(4,11,10,104,30,”Send Claims”,(8)|16384,””,””,0,0,-1,”sendclms”, “”);
It should give this line instead:
tsl_atobjdone(4,11,10,104,30,20,(8)|16384,”Send Claims”,””,0,0,-1,”sendclms”, “”);
Note the addition of the value 20 just after 30, and the relocation of the “Send Claims” argument after the value 16384.
CR 728
Posted in CScript, TSL | Comments Off on AT CHECKBOX Translated Incorrectly
Wednesday, May 2nd, 2007
Using the CScript _StrnCmp() function to compare one character from each string, the return value is always 0. If the compared strings are at least two characters long, it works properly in most cases. However, the following script fails as well:
fline=” 1) ‘p5669050.301288 EDIT STATUS'”;
cdash=”*-*”;
dash=MidStr(fline,26,1);
xdash=”*” + dash + “*”;
rc=_StrnCmp(xdash,2,cdash,2,2);
rcstr=_Str(rc);
MsgBox(rcstr,”xdash=” + xdash + ” cdash=” + cdash,0);
CR 721
Posted in CScript | Comments Off on _StrnCmp() Fails Comparing Single Characters
Wednesday, May 2nd, 2007
The CScript command KeyLoad() doesn’t generate any debug errors when it runs. However, it doesn’t make any changes. Loading a new scheme with KeyLoad() doesn’t change the key mappings.
CR 719
Posted in CScript, Keyboard | Comments Off on KeyLoad() Makes No Changes
Wednesday, May 2nd, 2007
Open TinyTERM inside Internet Explorer. Execute a simple CScript, such as the following:
te.xmit(“?\r”);
te.wait(“H”,2);
te.xmit(“A\r”);
The cursor disappears. If you’re not running TinyTERM Web Server Client, you can open the Session Properties and click OK, and the cursor comes back. But the Session Properties aren’t available in TinyTERM Web Server Client.
CR 697
Posted in CScript, Web Server | Comments Off on Cursor Disappears Running Script in Browser
|