Cicode Programming Reference > Cicode Function Categories > Keyboard Functions Introduction > KeyReplay

KeyReplay

Replays the last key sequence (except for the last key, which would execute the command). This function is useful when a command is to be repeated. To call this function from the keyboard, use a Hot Key "*" (asterisk) command, otherwise the KeyReplay() function itself is replayed.

Syntax

KeyReplay(sub)

sub:

Number of characters to subtract before replay. Default value is 1.

Return Value

0 (zero) if successful, otherwise an error is returned.

Related Functions

KeyReplayAll

Example

If the previous contents of the key command line were:

"START ABC ENTER"
KeyReplay();
! Replays "START ABC".

See Also

Keyboard Functions