Move my UR10 by just clicking on my URCap

I would like to point your attention towards this sample.
This moves the robot to some position, when the movement command is executed.
In this respect, there is nothing added to the generated script, but merely upon button push, the robot moves.
In your URCap project, you could start by importing the “clientSendScript” class and use the methods here, to interact with the functional code of your URCap Contribution.