Author Topic: How to use about the second argument hotkeyDescription of MB_AddMenuItem API.  (Read 2965 times)

HawkWide

  • Newbie
  • *
  • Posts: 2
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)"
                                                                                                           ^^^^^^^^?

Steven

  • Administrator
  • Hero Member
  • *****
  • Posts: 34986
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

HawkWide

  • Newbie
  • *
  • Posts: 2
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.