How to click a toolbar button from an extension?

Hi,

Sorry if my question is a bit dumb, I’m very new to this.

In my extension I would like to ‘click’ on a toolbar button.
But I don’t know how to list the toolbars button or how to call the action behind it.
There is plenty of exemples on how to add en button or a menu item, fine, but I want to click an existing button if it exists (the button is part of an other extension), how can I do that ?

I’m my being clear enough ?

Thanks.

Usually it is simpler just to directly invoke whatever the button function is. You can generate your own events if you have to:

1 Like

Thanks, but how can I find out the events attached to the existing buttons/extensions ?

Use Dominspector addon or inspect the extension code.