Bug: Cntrl+End is not recorded in the macro
-
When Cntrl+End key is used to go to the end of the file, it’s not recorded in the macro. For example I created macro to “Reload File and Go The the End”. When Macro is saved and executed, it reloads the file, but does not go to the end. Cntrl+R will reload the file and Cntrl+End will go the the end of the file. This macro is useful to reload logfiles and go to the end of the file. This used to work fine until last couple of releases when it stopped working.
-
@Jigar-Patel said in Bug: Cntrl+End is not recorded in the macro:
When Cntrl+End key is used to go to the end of the file, it’s not recorded in the macro
Macro’s are saved in the shortcuts.xml file. This is normally located in the folder %appdata%\notepad++. If you open it in Notepad++, be aware that Notepad++ will write to that file when closing if any configuration setting within that file need updating, so don’t edit the file unless it is the only thing you do in a Notepad++ session.
As you are using macro’s it might be a good idea to read the online manual on macros’ here.
I created the same macro as you were trying to record and got the following in my shortcuts.xml file. Note the last entry has a message value of 2318. Since this is a type 0, it means it’s a Scintilla command. Scintilla is what Notepad++ uses under the hood, so a lot of the commands are directed to the Scintilla process for completing.
<Macro name="reload-goto-end" Ctrl="no" Alt="no" Shift="no" Key="0"> <Action type="0" message="2422" wParam="0" lParam="0" sParam="" /> <Action type="0" message="2325" wParam="0" lParam="0" sParam="" /> <Action type="0" message="2422" wParam="0" lParam="0" sParam="" /> <Action type="0" message="2325" wParam="0" lParam="0" sParam="" /> <Action type="2" message="0" wParam="41014" lParam="0" sParam="" /> <Action type="0" message="2318" wParam="0" lParam="0" sParam="" /> </Macro>
The Goto-End command is this one, 2318. See this image of the relevant Scintilla code.
So, obviously from the code I just presented above, the macro works exactly as expected, the Ctrl-End shortcut was recorded. You should first check what your macro actually saved, is it the same as I show above?
What happens when you use the Ctrl-End keystrokes manually, does the caret move to the end of the document? If so, then the macro should have that as the last entry as did mine.
I would also suggest reading the FAQ post called “Notepad++ Crashes/Freezes/Unresponsive after Update”. It may not seem relevant, but part of the post refers to running Notepad++ without any plugins running. See if that changes the outcome.
When you come back with more information, please include the debug info. It’s available from the “?” menu, copy and paste that in your post so we might get a better idea of your setup. That may provide a clue to the problem.
Terry