If you need to repeat the same keyboard actions repeatedly in TinyTERM 4.x, the CScript scripting language can do it. In TinyTERM 4.30 and higher, you can do this automatically through the Macro Recorder.
This tool copies the keys you type in, watches for responses from the host system, and records it all to a CScript file. To use the Macro Recorder:
- On the Tools menu, click Macro Recorder.
- In the list box, type a name for the macro. If you accept the default name, the ## signs will be replaced by numbers; e.g., KeyMac00.cs. Every new macro will be assigned a new number, one higher than the last macro created.
- Click the Record button to begin recording.
- Type the commands and other keystrokes you wish to record. You must hit Enter at least once, or the macro will not be recorded.
- Click the Pause button to temporarily halt recording and to start recording again later.
- Click the Stop button to end recording and write the macro file.
There are two ways to execute the resulting macro:
- Open the Macro Recorder. In the list box, type the name of the macro. Click the Play button.
- Click on Tools | Execute Script File. Select the macro from the list of scripts, then click the Open button.
If the macro isn’t doing quite what you expected, you can record a new macro or edit the existing one. To edit, go to the Tools menu and select Script Editor. Click the Open button to select your macro, then edit it as you need to.
You can also view a screencast that demonstrates this process. For more information on script commands, see the TinyTERM Programmers Reference Manual. You can also contact our Support department for help writing and debugging macros and other CScript files.
CR 130, added in TinyTERM 4.30
CR 724, not enabled in TN3270 or TN5250
CR 800, must hit Enter
This entry was posted
on Thursday, April 12th, 2007 at 11:39 am and is filed under CScript, Keyboard, Screencast.
You can follow any responses to this entry through the RSS 2.0 feed.
Both comments and pings are currently closed.