Binds a key combination to run a macro


See also Keybind functions.

Signature:

success = SetBindingMacro("key", index) or SetBindingMacro("key", "name")

Arguments:

  • key - A key or key combination (e.g. "CTRL-2") (string, binding)
  • index - Index of a macro (number, macroID)
  • name - Name of a macro (string)

Returns:

  • success - 1 if the key binding was successful; otherwise nil (1nil)