REPLAY

From Recital Documentation Wiki
Jump to: navigation, search

Purpose

Replay a keyboard macro


Syntax

REPLAY FROM <.kbm filename> | (<expC>)


See Also

&, MENU QUERY, SET CAPTURE, SET MACKEY


Description

The REPLAY command is used to replay a keyboard macro <.kbm filename>. The file name can be substituted with an <expC>, enclosed in round brackets, which returns a valid filename. If no file extension is specified, '.kbm' is assumed. REPLAY works in conjunction with the SET CAPTURE TO command. SET CAPTURE TO initiates the capturing of all keys pressed at the keyboard to be stored in a keyboard macro file.

Everything typed, whether at the '>' prompt, or in a form or menu, is stored in the keyboard macro file. When keyboard capture is complete, the capture file can be closed by issuing the SET CAPTURE TO command without a <.kbm filename> specified. The REPLAY command then allows the keys to be played back. This is particularly useful for saving a session where you set up a report format, a table or similar file, or build a query using the MENU QUERY command.

As an alternative, keyboard macros can be initiated from within forms and menus by pressing the key sequence [^OC], then replayed by pressing the key sequence [^OR]. This allows you to store standard 'form filling' sequences and replay them when needed.


Example

set capture to mydbfkb
create mydbf
use
replay from mydbfkb


Products

Recital