getmusicbee.com

Support => Developers' Area => MusicBee API => Topic started by: HawkWide on September 23, 2023, 03:24:26 AM

Title: How to use about the second argument hotkeyDescription of MB_AddMenuItem API.
Post by: HawkWide on September 23, 2023, 03:24:26 AM
I'm currently developing a small plugin for myself.
I figured out how to add this plugin menu to MusicBee, but I don't know how to assign hotkeys.

What should I write in the second argument "hotkeyDescription" of the MB_AddMenuItem API?
Please tell me the specific method to write it.

I checked the source code of the "TagTools" plugin, but it is null, so I don't know.

ex.
"mbApiInterface.MB_AddMenuItem("mnuTools/" + "TEST",  "Ctrl + T", null)"
                                                                                                           ^^^^^^^^?
Title: Re: How to use about the second argument hotkeyDescription of MB_AddMenuItem API.
Post by: Steven on September 23, 2023, 04:00:21 AM
Its just a one sentence description of what the menu function does. That value is displayed in the Settings/Hotkey tab and if its null then it wont be available for the user to select as a hotkey
Title: Re: How to use about the second argument hotkeyDescription of MB_AddMenuItem API.
Post by: HawkWide on September 23, 2023, 04:36:37 AM
Thank you for answering my question.
I understand.
The second argument is the string to be displayed by hotkey assignment on the settings screen.
my misunderstanding.