H2 run a command plugin from a object plugin?

On 14/04/2018 at 00:43, xxxxxxxx wrote:

I have an object plugin (a generator) from which I want to start a command plugin.
CallCommand(command plugin Id) in the generator of course does not work.

What can I do to start a command plugin from a generator?
Or is that not possible from the generator due that it is threaded?

-Pim

On 14/04/2018 at 01:39, xxxxxxxx wrote:

Use the SpecialEventAdd() function, this will result in a CoreMessage, which you could capture in a MessageData, which then performs the CallCommand to your CommandData

Note that this isn't a synchronized event. Whenever the coremessage is picked up, the action will be done. Not necessarily right at the moment you send out the SpecialEventAdd.

On 14/04/2018 at 02:27, xxxxxxxx wrote:

Thanks, I will give it a try.

Edit: And it works great!

On 17/04/2018 at 00:28, xxxxxxxx wrote:

Hi Pim,

I don't have a lot to add in this topic, but it can be useful for you to read Message manual or even this thread

Cheers,
Maxime