Using Win10, Notepad++ v7.9.3 portable, tried both 32bit and 64Bit versions
with the same results. When I edit CustomizeToolbar.btn file 2 of my 4
custom commands work while the other 2 do not. This is what I have in the
file.
Macro,KickAss,,,Test1.bmp ---> This one works.
Macro,KickAss Run,,,Test2.bmp ---> This one does not work.
Macro,KickAss Leftmost,,,Test3.bmp ---> This one works.
Macro,KickAss Run Leftmost,,,Test4.bmp ---> This one does not work.
The icons and tooltip text for the 2 that work are correct but the 2 that
do not work show the correct icon (although grayed out) and the tooltip is..
Custom Button Error: Macro,KickAss Run,, and
Custom Button Error: Macro,KickAss Run Leftmost,,
Note only 2 of the 3 commas at the end are showing. Would really like to
get these working as they are my scripts for compiling.
Note that all 4 scripts work correctly when run from the menu.
The really strange thing is that I have tried setting up buttons for many
of the default menu items and I get very erratic results. Some work
correctly, some give me the same error, while some do not show up at all?
Note that I have tried this without any other plugins installed to avoid
any conflicts. Any suggestions?
Managed to solve this finally. When I added the commands to the Macro menu using using NppExec plugin I gave the menu name string as "KickAss & Run" which I changed to "KickAss and Run" to fix this. The Ampersand character is used in menu resource files to indicate the following letter is the hot key for that menu item and the ampersand is not actually displayed. As a result, the string I supplied in the CustomizeToolbar.btn file, while looking identical, was not actually matching the Macro menu string.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Using Win10, Notepad++ v7.9.3 portable, tried both 32bit and 64Bit versions
with the same results. When I edit CustomizeToolbar.btn file 2 of my 4
custom commands work while the other 2 do not. This is what I have in the
file.
Macro,KickAss,,,Test1.bmp ---> This one works.
Macro,KickAss Run,,,Test2.bmp ---> This one does not work.
Macro,KickAss Leftmost,,,Test3.bmp ---> This one works.
Macro,KickAss Run Leftmost,,,Test4.bmp ---> This one does not work.
The icons and tooltip text for the 2 that work are correct but the 2 that
do not work show the correct icon (although grayed out) and the tooltip is..
Custom Button Error: Macro,KickAss Run,, and
Custom Button Error: Macro,KickAss Run Leftmost,,
Note only 2 of the 3 commas at the end are showing. Would really like to
get these working as they are my scripts for compiling.
Note that all 4 scripts work correctly when run from the menu.
The really strange thing is that I have tried setting up buttons for many
of the default menu items and I get very erratic results. Some work
correctly, some give me the same error, while some do not show up at all?
Note that I have tried this without any other plugins installed to avoid
any conflicts. Any suggestions?
Managed to solve this finally. When I added the commands to the Macro menu using using NppExec plugin I gave the menu name string as "KickAss & Run" which I changed to "KickAss and Run" to fix this. The Ampersand character is used in menu resource files to indicate the following letter is the hot key for that menu item and the ampersand is not actually displayed. As a result, the string I supplied in the CustomizeToolbar.btn file, while looking identical, was not actually matching the Macro menu string.