Typical errors when working with Robot is that the robot requires absolute screen coordinates. Sometimes people (including me) get the relative coordinate of a button relative to its window and try to click it with a robot. Make sure you can find the absolute coordinate of the screen element you are trying to click.
To make sure that the robots are working, find the coordinates of a desktop icon, for example. place the icon next to the upper left corner of the screen and press the 20x20 button. You will see the effect.
Unfortunately, you did not provide your code, so I cannot give you a better answer.
Alexr source share