![]() TL DRĬopy the above macros into your shortcuts.xml file and set their shortcuts with the Shortcut Mapper after restarting Notepad . So if you copy that macro, remove the first action tag, give it a new name, and change the wParam attribute of the Action to match the number in Resource Hacker that corresponds to the action you want, you get the following macros which can be pasted in at the end of the list of Macros: įinally, after starting Notepad back up again you can go to the Macros section of the Shortcut Mapper and choose the shortcuts you want for them. Note that in the second Action tag, the wParam value of 41006 matches the Save menu item number listed in the Resource Hacker, this confirms that's the number we need to use, and where we need to put it. This is the "Trim Trailing and save" macro that comes in the default installation. This is the Macros section of my shortcuts.xml file: Note the numbers after the quoted strings. ![]() Ctrl-Shift-Tab: Previous Document (also shows list of open files). Can be disabled - see Settings/Preferences/Global. I got this after opening the notepad .exe and expanding the first menu section: Shortcut Action Ctrl-O: Open File: Ctrl-N: New File: Ctrl-S: Save File: Ctrl-Alt-S: Save As: Ctrl-Shift-S: Save All: Ctrl-P: Print: Alt-F4: Exit: Ctrl-Tab: Next Document (also shows list of open files). Now click on File menu, press and hold CTRL key and click on New Task menu. The accepted answer for How to write macro for Notepad ? mentions using Resource Hacker to look up menu wParams. NOTE: If you can’t open Command Prompt or if it also opens with Notepad, then try this: Press CTRL ALT DEL keys together and open Task Manager.Alternatively, you can press CTRL SHIFT ESC keys together to directly launch Task Manager. ![]() Note: you may run into trouble if you try to edit the configuration files with Notepad itself. The file you need to edit is your profile's shortcuts.xml file, usually found in %APPDATA%\Notepad \shortcuts.xml. ![]() It turns out you can use Notepad 's built-in macros to do this, but you'll have to edit them manually (versus recording them).
0 Comments
Leave a Reply. |