Arbortext Command Language > Functions by Alphabetical Listing > macro_record_cmd
  
macro_record_cmd
macro_record_cmd (command[, doc])
If a macro is being recorded on the document specified by doc, this function assigns the string specified by command as the command to be recorded for the current event.
command — The string to assign as the command recorded for the current event.
command replaces any command that would have been recorded for the event; for this reason this function should be called after any changes are made to the document.
The command string to record should not specify an explicit document or window id if the macro will be used in another session. Most built-in functions use the current document if the document parameter is omitted. If a function requires a document or window parameter, current_doc or current_window should be specified.
doc — Optional. The identifier of the document on which the macro recording session is started. If doc is omitted or 0, the current document is used.
Related Topics
macro_record built-in function