sendkcode

Sends the key code.

sendkcode <key code> <repeat count>

Remarks

Causes Tera Term to perform a function defined for pressing a key or key combination.
The key or key combination is specified by its <key code>, which is defined by KEYCODE.EXE. The function is performed <repeat count> times.

Usually the function means sending a character string to the host. The function can be defined in the keyboard setup file of Tera Term.
See Keyboard setup file.

The execution of macros using sendkcode in the [User keys] section of the keyboard setup file with <control flag> 2 is not possible.
The execution of Tera Term menu commands using sendkcode in the [User keys] section of the keyboard setup file with <control flag> 3 is not supported.
Please use the callmenu command to execute Tera Term menu commands.

Example

; Simulate pressing the down-arrow key three times.
; The key code of the down-arrow key is 336 for the IBM PC keyboard.
sendkcode 336 3