getmusicbee.com

Support => Developers' Area => Topic started by: TRoJAnV on October 24, 2020, 01:33:59 PM

Title: Invoking registered command from another plugin?
Post by: TRoJAnV on October 24, 2020, 01:33:59 PM
Hey,

This is kinda a two part question.

1) How is the "mbApiInterface.MB_InvokeCommand(Command command, object parameter);" used? Is there an example of this function call someone's used before as an example I could see?

2) Is it possible to call a function that was registered by another plugin?

For example, if in Plugin A I did: "mbApiInterface.MB_RegisterCommand("MyFunction", DoSomething);"

In plugin B: Can I call that registered method? If so how would I go about it?

Thanks!
Title: Re: Invoking registered command from another plugin?
Post by: Steven on October 24, 2020, 11:06:47 PM
1 - its just a easy way to invoke musicbee commands - have a look at the Command enumeration
2 - not in the current api