Difference between revisions of "REPLAY"
Yvonnemilne (Talk | contribs) |
Yvonnemilne (Talk | contribs) |
||
Line 1: | Line 1: | ||
− | |||
− | |||
− | |||
==Class== | ==Class== | ||
Keyboard Events | Keyboard Events | ||
Line 39: | Line 36: | ||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Commands]] | [[Category:Commands]] | ||
+ | [[Category:Keyboard Events]] | ||
+ | [[Category:Keyboard Events Commands]] |
Revision as of 16:17, 3 June 2009
Class
Keyboard Events
Purpose
Replay a keyboard macro
Syntax
REPLAY FROM <.kbm filename> | (<expC>)
See Also
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 Terminal Developer