Macro
A macro is a series of recorded actions saved by a program to repeat later. Macros can help computer users save time by automating repetitive tasks. Some programs include built-in macro support to record and replay actions within that program, while other utilities can record and replay actions in other programs. Computer users can record their own macros or download and run macros from other sources.
A macro is similar to a script, as both contain a series of tasks for a program to run. While a script generally consists of program commands executed by a command line, a macro includes user interactions with parts of the screen. For example, a macro can record you entering a text in a text field, opening a menu, selecting a command, then clicking a button in a program window.
Office applications like Word and Excel include support for macros, allowing you to record a series of actions — entering a return address or formatting data in a certain way — and replay those actions with a single keyboard shortcut or button press. You can edit macros after recording them to add, remove, or modify steps. You can also write existing macros from scratch. Not all programs use the word "macro" to refer to recorded actions — for example, Photoshop allows you to record a series of commands that you can run from a menu but instead calls them "actions."
Some keyboards and mice designed for gamers and power users ship with software that allows you to record a macro, then assign it to a special key or button. Other software utilities let you record actions system-wide, then create a custom keyboard shortcut to trigger the macro that you can run no matter which program you're using.
NOTE: The word "macro" may also refer to macro photography, a method for taking photographs of a small object at close range.