Struggle with hand-E gripper with UR3e using RoboDK

Hello,
We are using a Hand-E gripper With an UR3e robot, we created 2 .script with ROBODK that can open and close the gripper but we can’t call these programs with the python script that control the whole pattern of the robot. We are forced to use a python script for the global control of the robot because we have serious need of modification of the positions following cycle evolution.

We tried RunCode and RunProgram
https://robodk.com/doc/en/PythonAPI/robo…RunProgram

But none works, we don’t have any error when we try to run it on the robot.

We really need your help.