Is there a way (and if there is, how?) to send mouse and/or keyboard events to a VNC server programatically?
Also, is there a way to set mouse's X and Y coordinates before sending a left-click event?
PS: I'd like to do all that with bash, but if that's not possible with bash, I can use anything else.

Check Solution