Академический Документы
Профессиональный Документы
Культура Документы
Keyboard macros and mouse macros allow short sequences of keystrokes and
mouse actions to transform into other, usually more time-consuming, sequences of
keystrokes and mouse actions. In this way, frequently used or repetitive sequences
of keystrokes and mouse movements can be automated. Separate programs for
creating these macros are called macro recorders.
Keyboard macros have in more recent times come to life as a method of exploiting
the economy of massively multiplayer online role-playing games (MMORPGs).
By tirelessly performing a boring, repetitive, but low risk action, a player running a
macro can earn a large amount of the game's currency or resources. This effect is
even larger when a macro-using player operates multiple accounts simultaneously,
or operates the accounts for a large amount of time each day. As this money is
generated without human intervention, it can dramatically upset the economy of
the game. For this reason, use of macros is a violation of the TOS or EULA of
most MMORPGs, and administrators of MMORPGs fight a continual war to
identify and punish macro users.
The programmers' text editor, Emacs, (short for "editing macros") follows this idea
to a conclusion. In effect, most of the editor is made of macros. Emacs was
originally devised as a set of macros in the editing language TECO; it was later
ported to dialects of Lisp.
Another programmers' text editor, Vim (a descendant of vi), also has full
implementation of macros. It can record into a register (macro) what a person types
on the keyboard and it can be replayed or edited just like VBA macros for
Microsoft Office. Vim also has a scripting language called Vimscript[4] to create
macros.