Macros are sequences of events (such as keystrokes, mouse clicks, and delays) that can be played back to help with repetitive tasks. They can also be used to replay sequences that are long or difficult to run. You can assign a macro recorded in Microsoft Mouse and Keyboard Centre to a key or a mouse button. You can also use the Macro Repeat feature to play and repeat a macro continuously, and then stop it at any time.
Microsoft Mouse and Keyboard Centre macros use a .mhm extension and are saved as individual files in your default Documents\Microsoft Hardware\Macros subfolder. Macros recorded in keyboard and mouse are interchangeable. You can run them or edit them from either program.
Caution - Do not save passwords or other sensitive information in macros.
Macro Repeat does not support switching applications. For example, if you open your Web browser while a macro is repeating in a game, the macro stops repeating. Likewise, if you include a command in a macro to switch to a different application, Macro Repeat does not take effect, and the macro runs once only.
Press the button again to stop the macro from repeating.
Or, to stop the repeating macro and start another macro, press the key assigned to the other macro.