You can map TERM Script Language commands to a key in any version of TERM. Simply use the SETKEY command. For example, to map the command XMIT “This is a test” to Ctrl-F8, the command is:
setkey cf8 “@@xmit “This is a test””
To map multiple commands to a single key, put them all in a script file. You can then map that file to a key with the DO command. For example, to map the script myscript.cmd to the F5 function key, the command is:
setkey f5 “@@do myscript.cmd”
CScript handles this through the keyboard mapper instead. To map one or more script commands to a key, change the Action field to COMMAND, then enter the commands in one long string. For example:
te.cls();te.displaynl(“Hello World!”);
If you need to map a script to a key, use the CompileFile() command:
CompileFile(“scriptname.cs”);
You can also view this information in a screencast by clicking here.
This entry was posted
on Thursday, April 12th, 2007 at 1:13 pm and is filed under Keyboard, Screencast, Scripting.
You can follow any responses to this entry through the RSS 2.0 feed.
Both comments and pings are currently closed.