Access docker's buttons from other application

Hello,

I created a docker for X7 with two buttons.

It works fine. (Thanks to bonus630. Great project).

Please could you explain or point me to other previous topic about :

1. How to check from other application if the docker is installed?

2. How to start or close the docker from other application?

3. How to press one of the buttons from other application?

Thank you in advance