.MHM File Extension
Microsoft Hardware Macro
3.0 | 1 Votes
What is an MHM file?
An MHM file is a macro recorded using the Microsoft Mouse and Keyboard Center. It is used to automatically perform a task in Windows or a Windows program, such as Microsoft Word or Microsoft Excel. To execute the macro an MHM file contains, you must own a Microsoft mouse and/or keyboard, and you must use Microsoft Mouse and Keyboard Center to associate your MHM file with a mouse or keyboard button. MHM files are stored in the Documents/Microsoft Hardware/Macros directory.
Macros are scripts you can execute to complete a complex or repetitive task. Most often, users execute a macro by pressing one or more keyboard keys. For example, users who often format their Microsoft Word documents the same way can create a macro that, with a single keypress, applies that formatting.
In Microsoft Mouse and Keyboard Center, Windows users who own a Microsoft keyboard or mouse can create macros and associate them with a certain mouse or keyboard button. These macros are saved as MHM files. Microsoft Mouse and Keyboard Center comes with a default set of MHM files, which are intended for use with Microsoft Excel, OneNote, Outlook, PowerPoint, Project, Visio, and Word. However, when creating their own macros, users can save MHM files that perform nearly any Windows action.
NOTE: If you do not own a Microsoft keyboard or mouse, you will not be able to open MHM files in Microsoft Mouse and Keyboard Center.
How do I open an MHM file?
Provided you own a Microsoft keyboard or mouse, you can open MHM files in Microsoft Mouse and Keyboard Center (Windows). From there, you can associate the macro an MHM file contains with a mouse or keyboard button.
If you do not have access to Microsoft Mouse and Keyboard Center, but you want to learn more about your MHM file, you can open it in any text or source code editor, such as Microsoft Visual Studio Code, to view the XML data the file contains.