Activate linking tool by code

Hello,

I want to activate my linking tool by code and not by using the standard mouse click. How can I do this?

Thank you very much!

Benedikt

That is demonstrated in the documentation for the LinkingTool class.