GetMacroCopy

Far Manager Macro System

GetMacroCopy


macro = mf.GetMacroCopy (index)

Parameters:
  index:  integer

Returns:
  macro:  table or nil

Description:
  GetMacroCopy returns a copy of a loaded macro (or event handler) table
  by its index in the internal array (starting from 1). If the index is greater
  than the size of the array, the function returns nil, so one can determine
  the end of the array.

Notes:
  * Inactive (unloaded or deleted) elements have the field "disabled" == true.
  * To distinguish between macro table from event handler table: there is the field
    "area" of type string that is present only in macro tables.